From eb60442a0471b8712f913830dc7924ab91bc5d32 Mon Sep 17 00:00:00 2001 From: dSevere Date: Fri, 21 Oct 2011 15:04:49 +0000 Subject: [PATCH] // debug and optimisations for admin stock interfaces git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9555 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/AdminController.php | 50 +++++++++++++++++++--------------- classes/HelperList.php | 4 +-- classes/stock/StockManager.php | 47 ++++++++++++++++++++++++++------ classes/stock/Warehouse.php | 14 +++++++--- 4 files changed, 78 insertions(+), 37 deletions(-) diff --git a/classes/AdminController.php b/classes/AdminController.php index eabb5818a..b28bc377a 100644 --- a/classes/AdminController.php +++ b/classes/AdminController.php @@ -61,7 +61,7 @@ class AdminControllerCore extends Controller public $id = -1; /** @var array noTabLink array of admintab names witch have no content */ - public $noTabLink = array('AdminCatalog', 'AdminTools'); + public $noTabLink = array('AdminCatalog', 'AdminTools', 'AdminStock'); /** @var string Security token */ public $token; @@ -118,6 +118,9 @@ class AdminControllerCore extends Controller /** @var array list of row ids associated with a given action for witch this action have to not be available */ protected $list_skip_actions = array(); + /** @var bool boolean List content lines are clickable if true */ + protected $list_no_link = false; + /** @var array $cache_lang cache for traduction */ public static $cache_lang = array(); @@ -657,7 +660,7 @@ class AdminControllerCore extends Controller /** * Display form */ - public function displayForm($firstCall = true) + public function displayForm($first_call = true) { $content = ''; $content .= $this->initForm(); @@ -680,7 +683,7 @@ class AdminControllerCore extends Controller $this->_defaultFormLanguage = (int)$this->context->cookie->employee_form_lang; // Only if it is the first call to displayForm, otherwise it has already been defined - if ($firstCall) + if ($first_call) { $content .= '