ImportrunController: cleanup

This commit is contained in:
Thomas Gelf 2016-06-26 16:30:12 +02:00
parent 6cf7c8739f
commit 1915e4c42b

View File

@ -8,15 +8,17 @@ class ImportrunController extends ActionController
{ {
public function indexAction() public function indexAction()
{ {
$id = $this->getRequest()->getUrl()->getParams()->shift('id');
$this->view->title = $this->translate('Import run'); $this->view->title = $this->translate('Import run');
$table = $this->loadTable('importedrows') $table = $this
->loadTable('importedrows')
->setConnection($this->db()) ->setConnection($this->db())
->setChecksum( ->setChecksum(
$this->db()->getImportrunRowsetChecksum($this->params->get('id')) $this->db()->getImportrunRowsetChecksum($id)
); );
$this->view->table = $this->applyPaginationLimits($table); $this->view->table = $this->applyPaginationLimits($table);
//$this->view->table->enforceFilter('id', $this->params->shift('id')); $this->view->filterEditor = $table->getFilterEditor($this->getRequest());
// $this->view->filterEditor = $table->getFilterEditor($this->getRequest()); $this->setViewScript('list/table');
$this->render('list/table', null, true);
} }
} }