Fix doc bloc entry
authorSeamus Lee <seamuslee001@gmail.com>
Sun, 18 Sep 2016 04:25:22 +0000 (14:25 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Wed, 12 Oct 2016 22:28:30 +0000 (09:28 +1100)
CRM/Admin/Form/Options.php
CRM/Core/OptionValue.php

index 67718e52f32fc0de103129cad346fe592c9e684e..d7e38155b74f0969a3d096bada9f1da9e59d9aa1 100644 (file)
@@ -177,8 +177,8 @@ class CRM_Admin_Form_Options extends CRM_Admin_Form {
         'addressee',
       )) && !$isReserved
     ) {
-      $domainSepcificOptionGroups = array('from_email_address');
-      $domainSpecific = in_array($this->_gName, $domainSepcificOptionGroups) ? TRUE : FALSE;
+      $domainSpecificOptionGroups = array('from_email_address');
+      $domainSpecific = in_array($this->_gName, $domainSpecificOptionGroups) ? TRUE : FALSE;
       $this->addRule('label',
         ts('This Label already exists in the database for this option group. Please select a different Value.'),
         'optionExists',
index f4f264172a00fa68106e56e93c7ceaa3216b96f6..576227da874e9bcdac165451068ecf9b219dc903 100644 (file)
@@ -259,8 +259,10 @@ class CRM_Core_OptionValue {
    * @param string $fieldName
    *   The name of the field in the DAO.
    * @param bool $domainSpecific
-   *   Dos this option groujp allow for duplicate options that are
-   *   in separate domain.
+   *   Filter this check to the current domain.
+   *   Some optionGroups allow for same labels or same names but
+   *   they must be in different domains, so filter the check to
+   *   the current domain.
    *
    * @return bool
    *   true if object exists