Code cleanup - remove unused values
authorColeman Watts <coleman@civicrm.org>
Sun, 10 Aug 2014 14:09:17 +0000 (15:09 +0100)
committerColeman Watts <coleman@civicrm.org>
Wed, 13 Aug 2014 09:24:27 +0000 (10:24 +0100)
CRM/Core/BAO/CustomField.php
CRM/Core/BAO/CustomGroup.php

index d96ddfbf6772c991298e5f27e5be656836e9ffaa..4a902f1054e4b9135cc0b9101f06a4b9c3c048cd 100644 (file)
@@ -1203,10 +1203,6 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
         $v = array();
         $p = array();
         foreach ($checkedData as $key => $val) {
-          if ($key === 'CiviCRM_OP_OR') {
-            continue;
-          }
-
           if ($html_type == 'CheckBox') {
             if ($val) {
               $p[] = $key;
index 060dd7dd1f37e64c00112efac997e0ea1f9b6a63..29a091598a43cc8a6a58ddd444a34d674c00f4ff 100644 (file)
@@ -1238,7 +1238,6 @@ ORDER BY civicrm_custom_group.weight,
       if (!isset($group['fields'])) {
         continue;
       }
-      $groupId = CRM_Utils_Array::value('id', $group);
       foreach ($group['fields'] as $field) {
         if (CRM_Utils_Array::value('element_value', $field) !== NULL) {
           $value = $field['element_value'];
@@ -1255,7 +1254,6 @@ ORDER BY civicrm_custom_group.weight,
           continue;
         }
 
-        $fieldId = $field['id'];
         if (!empty($field['element_name'])) {
           $elementName = $field['element_name'];
         }