From f445fe7fe7fe23fbbf791db1229cd6f01a0b1be2 Mon Sep 17 00:00:00 2001 From: lLefevre Date: Wed, 23 May 2012 16:13:27 +0000 Subject: [PATCH] // small fix in CSV import controller --- .../template/controllers/import/helpers/form/form.tpl | 6 ++++-- controllers/admin/AdminImportController.php | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/import/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/import/helpers/form/form.tpl index 8b043080e..e4f4dcc76 100644 --- a/admin-dev/themes/default/template/controllers/import/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/import/helpers/form/form.tpl @@ -97,8 +97,10 @@
  • {l s='Sample Addresses file'}
  • {l s='Sample Manufacturers file'}
  • {l s='Sample Suppliers file'}
  • -
  • {l s='Supply Orders sample file'}
  • -
  • {l s='Supply Orders Details sample file'}
  • + {if $PS_ADVANCED_STOCK_MANAGEMENT} +
  • {l s='Supply Orders sample file'}
  • +
  • {l s='Supply Orders Details sample file'}
  • + {/if}
     
    diff --git a/controllers/admin/AdminImportController.php b/controllers/admin/AdminImportController.php index 3e84ace90..5e217ee1f 100644 --- a/controllers/admin/AdminImportController.php +++ b/controllers/admin/AdminImportController.php @@ -464,6 +464,7 @@ class AdminImportControllerCore extends AdminController 'languages' => Language::getLanguages(false), 'id_language' => $this->context->language->id, 'available_fields' => $this->getAvailableFields(), + 'PS_ADVANCED_STOCK_MANAGEMENT' => Configuration::get('PS_ADVANCED_STOCK_MANAGEMENT'), ); return parent::renderForm();