projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
CRM-17270 fix - Custom country multi-select fields used in a Drupal View display...
[civicrm-core.git]
/
api
/
api.php
diff --git
a/api/api.php
b/api/api.php
index 4f53c542fc0324b54e6361ee65a70ba28f963cc5..8b55d97347e26335c6a7e5a35d93db3ac4556a8d 100644
(file)
--- a/
api/api.php
+++ b/
api/api.php
@@
-158,6
+158,10
@@
function _civicrm_api_replace_variables(&$params, &$parentResult, $separator = '
$count = count($stringParts);
}
}
+ // CRM-16168 If we have failed to swap it out we should unset it rather than leave the placeholder.
+ if (substr($params[$field], 0, 6) == '$value') {
+ $params[$field] = NULL;
+ }
}
}
}