projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #3204 from GinkgoFJG/CRM-14662
[civicrm-core.git]
/
api
/
v3
/
Generic
/
Getlist.php
diff --git
a/api/v3/Generic/Getlist.php
b/api/v3/Generic/Getlist.php
index 7cc9fa14c1fe2a017a19e7d36d0d972486d537bf..7a5255f3bb77bc9a5c16fa1dcfa1ce91f789a36a 100644
(file)
--- a/
api/v3/Generic/Getlist.php
+++ b/
api/v3/Generic/Getlist.php
@@
-113,8
+113,8
@@
function _civicrm_api3_generic_getList_defaults($entity, &$request) {
}
// When looking up a field e.g. displaying existing record
if (!empty($request['id'])) {
}
// When looking up a field e.g. displaying existing record
if (!empty($request['id'])) {
- if (is_string($request['id']) && strpos(
',', $request['id']
)) {
- $request['id'] = explode(',',
$request['id']
);
+ if (is_string($request['id']) && strpos(
$request['id'], ','
)) {
+ $request['id'] = explode(',',
trim($request['id'], ', ')
);
}
// Don't run into search limits when prefilling selection
unset($params['options']['limit'], $params['options']['offset'], $request['params']['options']['limit'], $request['params']['options']['offset']);
}
// Don't run into search limits when prefilling selection
unset($params['options']['limit'], $params['options']['offset'], $request['params']['options']['limit'], $request['params']['options']['offset']);