mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 07:04:07 +01:00
* [FIX] Fixed search grid behavior
This commit is contained in:
@@ -74,16 +74,27 @@ class UserGroupController extends ControllerBase implements CrudControllerInterf
|
||||
return;
|
||||
}
|
||||
|
||||
$itemsGridHelper = $this->dic->get(ItemsGridHelper::class);
|
||||
$grid = $itemsGridHelper->getUserGroupsGrid($this->userGroupService->search($this->getSearchData($this->configData)))->updatePager();
|
||||
|
||||
$this->view->addTemplate('datagrid-table', 'grid');
|
||||
$this->view->assign('index', Request::analyze('activetab', 0));
|
||||
$this->view->assign('data', $grid);
|
||||
$this->view->assign('data', $this->getSearchGrid());
|
||||
|
||||
$this->returnJsonResponseData(['html' => $this->render()]);
|
||||
}
|
||||
|
||||
/**
|
||||
* getSearchGrid
|
||||
*
|
||||
* @return $this
|
||||
* @throws \SP\Core\Dic\ContainerException
|
||||
*/
|
||||
protected function getSearchGrid()
|
||||
{
|
||||
$itemsGridHelper = $this->dic->get(ItemsGridHelper::class);
|
||||
$itemSearchData = $this->getSearchData($this->configData->getAccountCount());
|
||||
|
||||
return $itemsGridHelper->updatePager($itemsGridHelper->getUserGroupsGrid($this->userGroupService->search($itemSearchData)), $itemSearchData);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create action
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user