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

        There are no comments yet on this issue.

          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