'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',
* @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