Update actions_fetchobject.inc.php
This commit is contained in:
parent
6607f5f98e
commit
85aaac2fdf
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@
|
|||
if (($id > 0 || (!empty($ref) && !in_array($action, array('create', 'createtask', 'add')))) && (empty($cancel) || $id > 0)) {
|
||||
if (($id > 0 && is_numeric($id)) || !empty($ref)) { // To discard case when id is list of ids like '1,2,3...'
|
||||
if ($object->element == 'usergroup') {
|
||||
$ret = $object->fetch($id, '', true); // to load $object->members
|
||||
$ret = $object->fetch($id, (empty($ref)? '' : $ref), true); // to load $object->members
|
||||
} else {
|
||||
$ret = $object->fetch($id, (empty($ref)? '' : $ref));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue