Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-1181

Add default 'domain' field support for modules

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.2.0-b2
    • Component/s: Modules
    • Labels:
      None

      Description

      When proceeding through the order process as a client, the previously selected domain should propagate through by automatically being preset within the next selected module (that supports a domain name).

      Most modules use their own custom field name for the domain, so those modules should be updated to support the generic 'domain' field name as well.

      As an example: /components/modules/cpanel/cpanel.php

      From:

      		$domain->attach($fields->fieldText("cpanel_domain", $this->Html->ifSet($vars->cpanel_domain), array('id'=>"cpanel_domain")));
      

      To:

      		$domain->attach($fields->fieldText("cpanel_domain", $this->Html->ifSet($vars->cpanel_domain, $this->Html->ifSet($vars->domain)), array('id'=>"cpanel_domain")));
      

        Activity

        cody Cody Phillips (Inactive) created issue -
        cody Cody Phillips (Inactive) made changes -
        Field Original Value New Value
        Description When proceeding through the order process as a client, the previously selected domain should propagate through by automatically being preset within the next selected module (that supports a domain name).

        Most modules use their own custom field name for the domain, so those modules should be updated to support the generic 'domain' field name as well.
        When proceeding through the order process as a client, the previously selected domain should propagate through by automatically being preset within the next selected module (that supports a domain name).

        Most modules use their own custom field name for the domain, so those modules should be updated to support the generic 'domain' field name as well.

        As an example: /components/modules/cpanel/cpanel.php

        From:
        {noformat}
        $domain->attach($fields->fieldText("cpanel_domain", $this->Html->ifSet($vars->cpanel_domain), array('id'=>"cpanel_domain")));
        {noformat}
        To:
        {noformat}
        $domain->attach($fields->fieldText("cpanel_domain", $this->Html->ifSet($vars->cpanel_domain, $this->Html->ifSet($vars->domain)), array('id'=>"cpanel_domain")));
        {noformat}
        cody Cody Phillips (Inactive) made changes -
        Security Private [ 10000 ]
        cody Cody Phillips (Inactive) made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        tyson Tyson Phillips (Inactive) made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        cody Cody Phillips (Inactive) made changes -
        Link This issue duplicates CORE-834 [ CORE-834 ]

          People

          • Assignee:
            cody Cody Phillips (Inactive)
            Reporter:
            cody Cody Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              2/May/14