From 318443a150a692a6b5b93d8fed8bd169af641e13 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Thu, 8 Mar 2012 09:31:38 +0000 Subject: [PATCH] [-] BO : #PSTEST-989 - Remove button "Save and add" on form add/edit feature --- controllers/admin/AdminFeaturesController.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/controllers/admin/AdminFeaturesController.php b/controllers/admin/AdminFeaturesController.php index dd47bff34..2c871a772 100644 --- a/controllers/admin/AdminFeaturesController.php +++ b/controllers/admin/AdminFeaturesController.php @@ -205,12 +205,13 @@ class AdminFeaturesControllerCore extends AdminController 'desc' => $this->l('Save') ); - $this->toolbar_btn['save-and-stay'] = array( - 'short' => 'SaveAndStay', - 'href' => '#', - 'desc' => $this->l('Save and add'), - 'force_desc' => true, - ); + if ($this->display == 'editFeatureValue') + $this->toolbar_btn['save-and-stay'] = array( + 'short' => 'SaveAndStay', + 'href' => '#', + 'desc' => $this->l('Save and add'), + 'force_desc' => true, + ); // Default cancel button - like old back link $back = Tools::safeOutput(Tools::getValue('back', ''));