CRM-17493 - fix import of checkbox'ed data
authorJamie McClelland <jm@mayfirst.org>
Tue, 10 Nov 2015 18:20:42 +0000 (13:20 -0500)
committerJamie McClelland <jm@mayfirst.org>
Tue, 10 Nov 2015 18:20:42 +0000 (13:20 -0500)
Avoid incorrect validation error.

CRM/Utils/DeprecatedUtils.php

index 5d3ae2552fe69a9682056ce8298dc898cbe8446c..cf1ebe7b9c76d45cdb6baa5ca8ac0e8d525d633f 100644 (file)
@@ -76,12 +76,7 @@ function _civicrm_api3_deprecated_participant_formatted_param($params, &$values,
             if ((strtolower(trim($customLabel['label'])) == strtolower(trim($v1))) ||
               (strtolower(trim($customValue)) == strtolower(trim($v1)))
             ) {
-              if ($type == 'CheckBox') {
-                $values[$key][$customValue] = 1;
-              }
-              else {
-                $values[$key][] = $customValue;
-              }
+              $values[$key][] = $customValue;
             }
           }
         }