* [MOD] Improved parsing request data

This commit is contained in:
nuxsmin
2018-03-03 12:44:02 +01:00
parent 7ec589a6fe
commit e0a45f4b2e
56 changed files with 436 additions and 437 deletions

View File

@@ -228,7 +228,7 @@ class AccountFileController extends ControllerBase implements CrudControllerInte
}
$this->view->addTemplate('datagrid-table', 'grid');
$this->view->assign('index', Request::analyze('activetab', 0));
$this->view->assign('index', Request::analyzeInt('activetab', 0));
$this->view->assign('data', $this->getSearchGrid());
$this->returnJsonResponseData(['html' => $this->render()]);
@@ -334,8 +334,8 @@ class AccountFileController extends ControllerBase implements CrudControllerInte
try {
$this->view->addTemplate('files-list', 'account');
$this->view->assign('deleteEnabled', Request::analyze('del', 0));
$this->view->assign('files', (new AccountFileService())->getByAccountId($accountId));
$this->view->assign('deleteEnabled', Request::analyzeBool('del', false));
$this->view->assign('files', $this->dic->get(AccountFileService::class)->getByAccountId($accountId));
$this->view->assign('sk', $this->session->getSecurityKey());
$this->view->assign('fileViewRoute', Acl::getActionRoute(ActionsInterface::ACCOUNT_FILE_VIEW));
$this->view->assign('fileDownloadRoute', Acl::getActionRoute(ActionsInterface::ACCOUNT_FILE_DOWNLOAD));