//tab module list fix
This commit is contained in:
@@ -23,10 +23,6 @@
|
|||||||
* International Registered Trademark & Property of PrestaShop SA
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
*}
|
*}
|
||||||
|
|
||||||
<div class="width4">
|
{if isset($localization_form)}{$localization_form}{/if}
|
||||||
{if isset($localization_form)}{$localization_form}{/if}
|
|
||||||
</div>
|
|
||||||
<br />
|
<br />
|
||||||
<div class="width4">
|
{if isset($localization_options)}{$localization_options}{/if}
|
||||||
{if isset($localization_options)}{$localization_options}{/if}
|
|
||||||
</div>
|
|
||||||
|
|||||||
@@ -1547,7 +1547,7 @@ class AdminControllerCore extends Controller
|
|||||||
if (!empty($country_module_list) && is_string($country_module_list) && $country_module_list_xml = simplexml_load_string($country_module_list))
|
if (!empty($country_module_list) && is_string($country_module_list) && $country_module_list_xml = simplexml_load_string($country_module_list))
|
||||||
{
|
{
|
||||||
$country_module_list_array = array();
|
$country_module_list_array = array();
|
||||||
if (is_array($country_module_list_xml->module))
|
if (isset($country_module_list_xml->module))
|
||||||
foreach ($country_module_list_xml->module as $k => $m)
|
foreach ($country_module_list_xml->module as $k => $m)
|
||||||
$country_module_list_array[] = (string)$m->name;
|
$country_module_list_array[] = (string)$m->name;
|
||||||
$this->tab_modules_list['slider_list'] = array_intersect($this->tab_modules_list['slider_list'], $country_module_list_array);
|
$this->tab_modules_list['slider_list'] = array_intersect($this->tab_modules_list['slider_list'], $country_module_list_array);
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ class AdminCmsCategoriesControllerCore extends AdminController
|
|||||||
{
|
{
|
||||||
$this->initToolbar();
|
$this->initToolbar();
|
||||||
$this->toolbar_btn['new']['href'] .= '&id_parent='.(int)Tools::getValue('id_cms_category');
|
$this->toolbar_btn['new']['href'] .= '&id_parent='.(int)Tools::getValue('id_cms_category');
|
||||||
|
$this->initTabModuleList();
|
||||||
return parent::renderList();
|
return parent::renderList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ class AdminDeliverySlipControllerCore extends AdminController
|
|||||||
|
|
||||||
public function initContent()
|
public function initContent()
|
||||||
{
|
{
|
||||||
|
$this->initTabModuleList();
|
||||||
$this->content .= $this->renderForm().'<br />';
|
$this->content .= $this->renderForm().'<br />';
|
||||||
$this->show_toolbar = false;
|
$this->show_toolbar = false;
|
||||||
$this->content .= $this->renderOptions();
|
$this->content .= $this->renderOptions();
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ class AdminLocalizationControllerCore extends AdminController
|
|||||||
'download_updated_pack' => 1
|
'download_updated_pack' => 1
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->show_toolbar = false;
|
$this->show_toolbar = true;
|
||||||
return parent::renderForm();
|
return parent::renderForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -315,7 +315,6 @@ class AdminLocalizationControllerCore extends AdminController
|
|||||||
|
|
||||||
// toolbar (save, cancel, new, ..)
|
// toolbar (save, cancel, new, ..)
|
||||||
$this->initToolbar();
|
$this->initToolbar();
|
||||||
|
|
||||||
$this->context->smarty->assign(array(
|
$this->context->smarty->assign(array(
|
||||||
'localization_form' => $this->renderForm(),
|
'localization_form' => $this->renderForm(),
|
||||||
'localization_options' => $this->renderOptions(),
|
'localization_options' => $this->renderOptions(),
|
||||||
@@ -323,6 +322,12 @@ class AdminLocalizationControllerCore extends AdminController
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function initToolbar()
|
||||||
|
{
|
||||||
|
$this->toolbar_btn = array();
|
||||||
|
$this->initTabModuleList();
|
||||||
|
}
|
||||||
|
|
||||||
public function display()
|
public function display()
|
||||||
{
|
{
|
||||||
$this->initContent();
|
$this->initContent();
|
||||||
|
|||||||
@@ -638,6 +638,7 @@ class AdminManufacturersControllerCore extends AdminController
|
|||||||
{
|
{
|
||||||
// toolbar (save, cancel, new, ..)
|
// toolbar (save, cancel, new, ..)
|
||||||
$this->initToolbar();
|
$this->initToolbar();
|
||||||
|
$this->initTabModuleList();
|
||||||
if ($this->display == 'editaddresses' || $this->display == 'addaddress')
|
if ($this->display == 'editaddresses' || $this->display == 'addaddress')
|
||||||
$this->content .= $this->renderFormAddress();
|
$this->content .= $this->renderFormAddress();
|
||||||
else if ($this->display == 'edit' || $this->display == 'add')
|
else if ($this->display == 'edit' || $this->display == 'add')
|
||||||
|
|||||||
Reference in New Issue
Block a user