Skip to content

Commit

Permalink
Resolve reference warning
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Jun 20, 2018
1 parent 5dfe656 commit ee34663
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -133,11 +133,12 @@ function renderFilter($request, $filterData = array()) {
$submission = $this->getAuthorizedContextObject(ASSOC_TYPE_SUBMISSION);
$stageId = $this->getAuthorizedContextObject(ASSOC_TYPE_WORKFLOW_STAGE);

$keys = array_keys($this->_userGroupOptions);
$allFilterData = array_merge(
$filterData,
array(
'userGroupOptions' => $this->_userGroupOptions,
'selectedUserGroupId' => reset(array_keys($this->_userGroupOptions)),
'selectedUserGroupId' => reset($keys),
'gridId' => $this->getId(),
'submissionId' => $submission->getId(),
'stageId' => $stageId,
Expand Down Expand Up @@ -201,7 +202,8 @@ protected function getFilterValues($filter) {
if (isset($filter['filterUserGroupId']) && $filter['filterUserGroupId']) {
$filterUserGroupId = $filter['filterUserGroupId'];
} else {
$filterUserGroupId = reset(array_keys($this->_userGroupOptions));
$keys = array_keys($this->_userGroupOptions);
$filterUserGroupId = reset($keys);
}
if (isset($filter['name']) && $filter['name']) {
$name = $filter['name'];
Expand Down

0 comments on commit ee34663

Please sign in to comment.