// report bugfix from saving customization with combination

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13226 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2012-02-10 14:08:03 +00:00
parent f49a1940e5
commit 64cdc4aea0
5 changed files with 82 additions and 6 deletions
+17
View File
@@ -559,5 +559,22 @@ class ProductControllerCore extends FrontController
}
return $specific_prices;
}
public function postProcess()
{
if ($this->ajax)
{
if (Tools::isSubmit('submitCustomizedDatas'))
{
$this->pictureUpload($this->product, $this->context->cart);
$this->textRecord($this->product, $this->context->cart);
$this->formTargetFormat();
}
if (count($this->errors))
die(Tools::jsonEncode(array('hasErrors' => true, 'errors' => $this->errors)));
else
die(Tools::jsonEncode(array('hasErrors' => false, 'conf' => Tools::displayError('Customization saved successfully.'))));
}
}
}