Commit 7be2f289 authored by Shudrum's avatar Shudrum

[+] BO PSCSX-4376 Avoid sending multiple emails when csv import

parent 8b9daded
......@@ -81,6 +81,9 @@ class AdminAttributeGeneratorControllerCore extends AdminController
public function initProcess()
{
if (!defined('PS_MASS_PRODUCT_CREATION'))
define('PS_MASS_PRODUCT_CREATION', true);
if (Tools::isSubmit('generate'))
{
if ($this->tabAccess['edit'] === '1')
......
......@@ -1263,6 +1263,9 @@ class AdminImportControllerCore extends AdminController
public function productImport()
{
if (!defined('PS_MASS_PRODUCT_CREATION'))
define('PS_MASS_PRODUCT_CREATION', true);
$this->receiveTab();
$handle = $this->openCsvFile();
$default_language_id = (int)Configuration::get('PS_LANG_DEFAULT');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment