importsource/property: unify tab handling

This commit is contained in:
Thomas Gelf 2016-02-19 12:56:16 +01:00
parent eb901dacca
commit 4eabaf5cd4
1 changed files with 1 additions and 9 deletions

View File

@ -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());