From 7699f86acd958c7ece7e9049bc439b4651503130 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Wed, 21 Mar 2018 10:32:59 +0100 Subject: [PATCH] Save logisitic queue name in configuration --- modules/logistics/logistics.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/modules/logistics/logistics.php b/modules/logistics/logistics.php index bbb3930d..5281772e 100644 --- a/modules/logistics/logistics.php +++ b/modules/logistics/logistics.php @@ -35,7 +35,7 @@ class Logistics extends Module $t->active = TRUE; $t->module = 'logistics'; $t->class_name = 'AdminLogistics'; - foreach(Language::getLanguages() as $lang) { + foreach (Language::getLanguages() as $lang) { if (isset($tabs_i18n[$lang['iso_code']])) { $t->name[$lang['id_lang']] = $tabs_i18n[$lang['iso_code']]; } else { @@ -332,13 +332,13 @@ class Logistics extends Module Configuration::updateValue('MONDIALRELAYWS_FTP_LOGIN', Tools::getValue('mondialrelay_ftp_login')); Configuration::updateValue('MONDIALRELAYWS_FTP_PASSWORD', Tools::getValue('mondialrelay_ftp_password')); - - // foreach(Tools::getValue('employee', array()) as $id_employee => $queue) { - // Configuration::updateValue('LOGISTICS_QUEUE_'.(int) $id_employee, $queue); - // } + // Set print queue - employe : name + foreach (Tools::getValue('employee', array()) as $id_employee => $queue) { + Configuration::updateValue('LOGISTICS_QUEUE_'.(int)$id_employee, $queue); + } $lock = array(); - foreach(explode(', ', Tools::getValue('lock_products')) as $item) { + foreach (explode(', ', Tools::getValue('lock_products')) as $item) { $lock[] = (int) $item; } Configuration::updateValue('LOGISTICS_LOCK', serialize(implode(',', $lock))); @@ -465,7 +465,7 @@ class Logistics extends Module '; - foreach(Country::getCountries((int) $cookie->id_lang) as $country) { + foreach (Country::getCountries((int) $cookie->id_lang) as $country) { $this->_html .= ''; } @@ -701,7 +701,7 @@ class Logistics extends Module '; $exapaq_carriers = unserialize(Configuration::get('EXAPAQWS_CARRIERS', serialize(array()))); - foreach(Db::getInstance()->ExecuteS(' + foreach (Db::getInstance()->ExecuteS(' SELECT c.* FROM `'._DB_PREFIX_.'carrier` c ') as $carrier) { @@ -749,7 +749,7 @@ class Logistics extends Module