Merge branch 'bugfix/remove-large-add-to-menu-tab-11850'

fixes #11850
This commit is contained in:
Eric Lippmann 2016-06-02 17:54:55 +02:00
commit 97451dae86
2 changed files with 2 additions and 1 deletions

View File

@ -249,7 +249,7 @@ EOT;
if ($this->has($name)) {
unset($this->tabs[$name]);
if (($dropdownIndex = array_search($name, $this->dropdownTabs, true)) !== false) {
array_splice($this->dropdownTabs, $dropdownIndex, 2);
array_splice($this->dropdownTabs, $dropdownIndex, 1);
}
}

View File

@ -129,6 +129,7 @@ abstract class MonitoredObjectController extends Controller
$this->view->form = $form;
$this->view->object = $this->object;
$this->view->tabs->remove('dashboard');
$this->view->tabs->remove('menu-entry');
$this->_helper->viewRenderer('partials/command/object-command-form', null, true);
return $form;
}