From 4eabaf5cd443e0269bebc7f4fb7384f1670b8724 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 19 Feb 2016 12:56:16 +0100 Subject: [PATCH] importsource/property: unify tab handling --- application/controllers/ImportsourceController.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/application/controllers/ImportsourceController.php b/application/controllers/ImportsourceController.php index 0750aa59..8b46a920 100644 --- a/application/controllers/ImportsourceController.php +++ b/application/controllers/ImportsourceController.php @@ -126,15 +126,7 @@ class ImportsourceController extends ActionController $form->handleRequest(); - $tabs = $this->getTabs()->add('edit', array( - 'url' => 'director/importsource/edit', - 'urlParams' => array('id' => $source_id), - 'label' => $this->translate('Import source'), - ))->add('modifier', array( - 'label' => $this->translate('Modifiers'), - 'url' => 'director/importsource/modifier', - 'urlParams' => array('source_id' => $source_id) - ))->activate('modifier'); + $tabs = $this->prepareTabs($source_id)->activate('modifier'); $this->view->title = $this->translate('Modifier'); // add/edit $this->view->table = $this->loadTable('propertymodifier')->enforceFilter(Filter::where('source_id', $source_id))->setConnection($this->db());