projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fa797b
)
Api test failures fix round4
author
monishdeb
<monish.deb@webaccessglobal.com>
Fri, 2 Jan 2015 11:45:16 +0000
(17:15 +0530)
committer
monishdeb
<monish.deb@webaccessglobal.com>
Wed, 28 Jan 2015 07:46:24 +0000
(13:16 +0530)
api/v3/utils.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/utils.php
b/api/v3/utils.php
index 112e4a6e7e9a2b93fc2f59b4d8375162da334649..64cdbe3767f713339ae6506972102f2d0ea0a5c7 100644
(file)
--- a/
api/v3/utils.php
+++ b/
api/v3/utils.php
@@
-2126,7
+2126,7
@@
function _civicrm_api3_field_value_check(&$params, $fieldName) {
$fieldValue = CRM_Utils_Array::value($fieldName, $params);
$op = NULL;
- if (!empty($fieldValue) && is_array($fieldValue) &&
in_array
(key($fieldValue), CRM_Core_DAO::acceptedSQLOperators())) {
+ if (!empty($fieldValue) && is_array($fieldValue) &&
array_search
(key($fieldValue), CRM_Core_DAO::acceptedSQLOperators())) {
$op = key($fieldValue);
$fieldValue = CRM_Utils_Array::value($op, $fieldValue);
}