[-] BO : BugFix : #PSCFV-2630 : Combination and multishop association issue with shared stock through group shop

This commit is contained in:
vChabot
2012-06-07 14:20:53 +00:00
parent 3500b9d771
commit ff2bd93be5
4 changed files with 43 additions and 4 deletions
@@ -78,7 +78,7 @@ class AdminAttributeGeneratorControllerCore extends AdminController
public function initProcess()
{
if (isset($_POST['generate']))
if (Tools::isSubmit('generate'))
{
if ($this->tabAccess['edit'] === '1')
$this->action = 'generate';
@@ -101,7 +101,7 @@ class AdminAttributeGeneratorControllerCore extends AdminController
$this->errors[] = Tools::displayError('Please choose at least 1 attribute.');
else
{
$tab = array_values($_POST['options']);
$tab = array_values(Tools::getValue('options'));
if (count($tab) && Validate::isLoadedObject($this->product))
{
AdminAttributeGeneratorController::setAttributesImpacts($this->product->id, $tab);