diff --git a/src/Queries/UserQuery.php b/src/Queries/UserQuery.php index a453015..83d4454 100644 --- a/src/Queries/UserQuery.php +++ b/src/Queries/UserQuery.php @@ -83,6 +83,8 @@ class UserQuery extends OldCoreQuery 'PASSWORD', 'CHECKWORD', 'LID', + 'WORK_LOGO', + 'PERSONAL_STREET', ]; /** @@ -96,24 +98,24 @@ protected function loadModels() $sort = $this->sort; $filter = $this->normalizeFilter(); $params = [ - 'SELECT' => $this->propsMustBeSelected() ? ['UF_*'] : ($this->normalizeUfSelect() ?: false), + 'SELECT' => $this->propsMustBeSelected() ? ['UF_*'] : ($this->normalizeUfSelect() ?: false), 'NAV_PARAMS' => $this->navigation, - 'FIELDS' => $this->normalizeSelect(), + 'FIELDS' => $this->normalizeSelect(), ]; $selectGroups = $this->groupsMustBeSelected(); $keyBy = $this->keyBy; - $callback = function() use ($sort, $filter, $params, $selectGroups){ + $callback = function () use ($sort, $filter, $params, $selectGroups) { $users = []; $rsUsers = $this->bxObject->getList($sort, $sortOrder = false, $filter, $params); while ($arUser = $this->performFetchUsingSelectedMethod($rsUsers)) { if ($selectGroups) { $arUser['GROUP_ID'] = $this->bxObject->getUserGroup($arUser['ID']); } - + $this->addItemToResultsUsingKeyBy($users, new $this->modelName($arUser['ID'], $arUser)); } - + return new Collection($users); }; @@ -161,8 +163,8 @@ public function count() $queryType = 'UserQuery::count'; $filter = $this->normalizeFilter(); - $callback = function() use ($filter) { - return (int) $this->bxObject->getList($order = 'ID', $by = 'ASC', $filter, [ + $callback = function () use ($filter) { + return (int)$this->bxObject->getList($order = 'ID', $by = 'ASC', $filter, [ 'NAV_PARAMS' => [ 'nTopCount' => 0, ], @@ -222,7 +224,7 @@ protected function normalizeUfSelect() { return preg_grep('/^(UF_+)/', $this->select); } - + protected function prepareMultiFilter(&$key, &$value) { $value = join(' | ', $value);