Fix : insert line extrafield
This commit is contained in:
parent
256f6e410c
commit
1a956cce9a
@ -4156,6 +4156,10 @@ abstract class CommonObject
|
|||||||
foreach($this->array_options as $key => $value)
|
foreach($this->array_options as $key => $value)
|
||||||
{
|
{
|
||||||
$attributeKey = substr($key,8); // Remove 'options_' prefix
|
$attributeKey = substr($key,8); // Remove 'options_' prefix
|
||||||
|
|
||||||
|
// array_option may contain extrafields from an origin object that doesn't exist in current object, we should not try to insert them
|
||||||
|
if(empty($extrafields->attribute_type[$attributeKey])) continue;
|
||||||
|
|
||||||
$attributeType = $extrafields->attribute_type[$attributeKey];
|
$attributeType = $extrafields->attribute_type[$attributeKey];
|
||||||
$attributeLabel = $extrafields->attribute_label[$attributeKey];
|
$attributeLabel = $extrafields->attribute_label[$attributeKey];
|
||||||
$attributeParam = $extrafields->attribute_param[$attributeKey];
|
$attributeParam = $extrafields->attribute_param[$attributeKey];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user