[-] BO: Fix PSCFV-3865
This commit is contained in:
@@ -3893,13 +3893,11 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
|
|
||||||
public function initFormFeatures($obj)
|
public function initFormFeatures($obj)
|
||||||
{
|
{
|
||||||
if (!Feature::isFeatureActive())
|
|
||||||
{
|
|
||||||
$this->displayWarning($this->l('This feature has been disabled, you can active this feature at this page:').' <a href="index.php?tab=AdminPerformance&token='.Tools::getAdminTokenLite('AdminPerformance').'#featuresDetachables">'.$this->l('Performances').'</a>');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$data = $this->createTemplate($this->tpl_form);
|
$data = $this->createTemplate($this->tpl_form);
|
||||||
|
if (!Feature::isFeatureActive())
|
||||||
|
$this->displayWarning($this->l('This feature has been disabled, you can active this feature at this page:').' <a href="index.php?tab=AdminPerformance&token='.Tools::getAdminTokenLite('AdminPerformance').'#featuresDetachables">'.$this->l('Performances').'</a>');
|
||||||
|
else
|
||||||
|
{
|
||||||
if ($obj->id)
|
if ($obj->id)
|
||||||
{
|
{
|
||||||
if ($this->product_exists_in_shop)
|
if ($this->product_exists_in_shop)
|
||||||
@@ -3938,7 +3936,7 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
$this->displayWarning($this->l('You must save this product before adding features.'));
|
$this->displayWarning($this->l('You must save this product before adding features.'));
|
||||||
|
}
|
||||||
$this->tpl_form_vars['custom_form'] = $data->fetch();
|
$this->tpl_form_vars['custom_form'] = $data->fetch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user