Merge branch '4.0' of git@github.com:Dolibarr/dolibarr.git into 5.0
This commit is contained in:
commit
2c3a696b78
@ -4261,6 +4261,13 @@ abstract class CommonObject
|
|||||||
foreach($new_array_options as $key => $value)
|
foreach($new_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])) {
|
||||||
|
unset($this->array_options[$key]);
|
||||||
|
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