[-] BO: Fix #PSCFV-7377 second part
This commit is contained in:
+4
-2
@@ -3570,14 +3570,16 @@ class ProductCore extends ObjectModel
|
|||||||
$query = 'INSERT INTO `'._DB_PREFIX_.'customization_field_lang` (`id_customization_field`, `id_lang`, `name`) VALUES ';
|
$query = 'INSERT INTO `'._DB_PREFIX_.'customization_field_lang` (`id_customization_field`, `id_lang`, `name`) VALUES ';
|
||||||
$data = array();
|
$data = array();
|
||||||
foreach ($customizations['labels'][$old_customization_field_id] as $customization_label)
|
foreach ($customizations['labels'][$old_customization_field_id] as $customization_label)
|
||||||
|
{
|
||||||
$data = array(
|
$data = array(
|
||||||
'id_customization_field' => (int)$customization_field_id,
|
'id_customization_field' => (int)$customization_field_id,
|
||||||
'id_lang' => (int)$customization_label['id_lang'],
|
'id_lang' => (int)$customization_label['id_lang'],
|
||||||
'name' => pSQL($customization_label['name']),
|
'name' => pSQL($customization_label['name']),
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!Db::getInstance()->insert('customization_field_lang', $data))
|
if (!Db::getInstance()->insert('customization_field_lang', $data))
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user