From 5f0d25a32b81109d37fc185c459c57e608330cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Hennes?= Date: Tue, 7 Nov 2023 13:42:02 +0100 Subject: [PATCH] Remove useless button in admin controller --- controllers/admin/change.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/controllers/admin/change.php b/controllers/admin/change.php index d4ce841..3e625ee 100644 --- a/controllers/admin/change.php +++ b/controllers/admin/change.php @@ -171,21 +171,6 @@ public function renderForm() return parent::renderForm(); } - /** - * Add button in Toolbar - * - * @return void - */ - public function initPageHeaderToolbar() - { - $this->page_header_toolbar_btn['new_object'] = [ - 'href' => self::$currentIndex . '&addchange&token=' . $this->token, - 'desc' => $this->l('Add new object'), - 'icon' => 'process-icon-new', - ]; - parent::initPageHeaderToolbar(); - } - /** * Génération de l'update *