diff --git a/application/controllers/DataController.php b/application/controllers/DataController.php index 00cbdceb..983ac59f 100644 --- a/application/controllers/DataController.php +++ b/application/controllers/DataController.php @@ -58,13 +58,17 @@ class DataController extends ActionController public function fieldsAction() { + $this->setAutorefreshInterval(10); $this->tabs(new DataTabs())->activate('datafield'); $this->addTitle($this->translate('Data Fields')); $this->actions()->add(Link::create( $this->translate('Add'), 'director/datafield/add', null, - ['class' => 'icon-plus'] + [ + 'class' => 'icon-plus', + 'data-base-target' => '_next', + ] )); (new DatafieldTable($this->db()))->renderTo($this); diff --git a/application/controllers/DatafieldController.php b/application/controllers/DatafieldController.php index 91b579a5..f3967112 100644 --- a/application/controllers/DatafieldController.php +++ b/application/controllers/DatafieldController.php @@ -26,7 +26,6 @@ class DatafieldController extends ActionController } $form = DirectorDatafieldForm::load() - ->setSuccessUrl('director/data/fields') ->setDb($this->db()); if ($edit) { diff --git a/application/forms/DirectorDatafieldForm.php b/application/forms/DirectorDatafieldForm.php index 25410026..f615fb7a 100644 --- a/application/forms/DirectorDatafieldForm.php +++ b/application/forms/DirectorDatafieldForm.php @@ -13,6 +13,8 @@ class DirectorDatafieldForm extends DirectorObjectForm { protected $objectName = 'Data field'; + protected $listUrl = 'director/data/fields'; + protected function onRequest() { if ($this->hasBeenSent()) {