From 9e2295a786fffe3bd663f24b7a1caed7e9226dfd Mon Sep 17 00:00:00 2001 From: Rodney Figaro Date: Mon, 27 Feb 2017 17:09:05 +0100 Subject: [PATCH] add "save and stay" button in garancia vap --- modules/garanciavap/controllers/admin/AdminGaranciaVap.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/garanciavap/controllers/admin/AdminGaranciaVap.php b/modules/garanciavap/controllers/admin/AdminGaranciaVap.php index 4375dab..c6bd336 100644 --- a/modules/garanciavap/controllers/admin/AdminGaranciaVap.php +++ b/modules/garanciavap/controllers/admin/AdminGaranciaVap.php @@ -14,7 +14,6 @@ class AdminGaranciaVapController extends AdminController $this->className = 'GaranciaVapModel'; $this->lang = true; $this->context = Context::getContext(); - parent::__construct(); } @@ -40,6 +39,12 @@ class AdminGaranciaVapController extends AdminController if (!$obj = $this->loadObject(TRUE)) { return; } + + $this->toolbar_btn['save-and-stay'] = array( + 'short' => 'SaveAndStay', + 'href' => '#', + 'desc' => $this->l('Save and stay'), + ); $this->fields_form = array( 'multilang'=> true,