[-] BO : fix #PSCFV-3276

This commit is contained in:
lLefevre
2012-07-20 14:16:54 +00:00
parent 0451915f58
commit 201e0801b9
5 changed files with 6 additions and 7 deletions

View File

@@ -900,7 +900,7 @@ class AdminImportControllerCore extends AdminController
);
$res = false;
if (($field_error = $category->validateFields(UNFRIENDLY_ERROR, true)) === true &&
($lang_field_error = $category->validateFieldsLang(UNFRIENDLY_ERROR, true)) === true)
($lang_field_error = $category->validateFieldsLang(UNFRIENDLY_ERROR, true)) === true && empty($this->errors))
{
$category_already_created = Category::searchByNameAndParentCategoryId(
$default_language_id,
@@ -931,7 +931,7 @@ class AdminImportControllerCore extends AdminController
//copying images of categories
if (isset($category->image) && !empty($category->image))
if (!(AdminImportController::copyImg($category->id, null, $category->image, 'categories')))
$this->warnings[] = $category->image.' '.Tools::displayError('Cannot be copied');
$this->warnings[] = $category->image.' '.Tools::displayError('cannot be copied');
// If both failed, mysql error
if (!$res)
{