// Fixed import button in AdminImport
This commit is contained in:
1 parent
804fe56ba0
commit
2316bb50ba
2 files changed
+2
-2
No files matched your search
@@ -95,6 +95,7 @@
|
|||||||
{l s='Column'} <span id="missing_column"> </span> {l s='must be set'}
|
{l s='Column'} <span id="missing_column"> </span> {l s='must be set'}
|
||||||
</div>
|
</div>
|
||||||
<form action="{$current}&token={$token}" method="post" id="import_form" name="import_form" class="form-horizontal">
|
<form action="{$current}&token={$token}" method="post" id="import_form" name="import_form" class="form-horizontal">
|
||||||
|
<input type="hidden" name="submitImportFile" value="1" />
|
||||||
<input type="hidden" name="csv" value="{$fields_value.csv}" />
|
<input type="hidden" name="csv" value="{$fields_value.csv}" />
|
||||||
<input type="hidden" name="convert" value="{$fields_value.convert}" />
|
<input type="hidden" name="convert" value="{$fields_value.convert}" />
|
||||||
<input type="hidden" name="regenerate" value="{$fields_value.regenerate}" />
|
<input type="hidden" name="regenerate" value="{$fields_value.regenerate}" />
|
||||||
|
|||||||
@@ -3030,9 +3030,8 @@ class AdminImportControllerCore extends AdminController
|
|||||||
$this->errors[] = Tools::displayError('This functionality has been disabled.');
|
$this->errors[] = Tools::displayError('This functionality has been disabled.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* PrestaShop demo mode*/
|
|
||||||
|
|
||||||
if (Tools::getValue('import'))
|
if (Tools::getValue('submitImportFile'))
|
||||||
{
|
{
|
||||||
// Check if the CSV file exist
|
// Check if the CSV file exist
|
||||||
if (Tools::getValue('csv'))
|
if (Tools::getValue('csv'))
|
||||||
|
|||||||
Reference in new issue
Block a user