Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-11204

Make it possible to temporarily change the domain (ie. to update settings on another domain)

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: None
    • Labels:
      None

      Description

      At the moment it's impossible to unset things from config in another domain - fix allows you to temporarily change the domain - as in

      foreach ($existing['values'] as $domainID => $domainSettings){
      CRM_Core_BAO_Domain::setDomain($domainID);
      $missing = array_diff_key($allSettings['values'], $domainSettings);
      foreach ($missing as $name => $settings)

      { self::convertConfigToSetting($name, $domainID); }

      CRM_Core_BAO_Domain::resetDomain();
      }

        Attachments

          Activity

            People

            • Assignee:
              timotten Tim Otten
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: