DatalistentryController: fix edit

This commit is contained in:
Thomas Gelf 2015-07-30 10:25:51 +02:00
parent 043a8e07e5
commit 1b56432b23
1 changed files with 1 additions and 7 deletions

View File

@ -11,19 +11,13 @@ class Director_DatalistentryController extends ActionController
public function editAction() public function editAction()
{ {
$this->indexAction(); $this->indexAction(true);
} }
public function indexAction($edit = false) public function indexAction($edit = false)
{ {
$request = $this->getRequest(); $request = $this->getRequest();
if ($request->getParam('edit')) {
$edit = true;
} else {
$edit = false;
}
$listId = $this->params->get('list_id'); $listId = $this->params->get('list_id');
$this->view->lastId = $listId; $this->view->lastId = $listId;