FIX: Delete an extrafield where type is double
Found the bug on a propal's extrafield, it was impossible to delete a decimal extrafield. In updateExtraField() the $value stayed "" where it needed to be null. The same issue can be found in insertExtraFields().
This commit is contained in:
parent
a129b6d132
commit
726b899d30
@ -5999,7 +5999,7 @@ abstract class CommonObject
|
||||
$this->errors[] = $langs->trans("ExtraFieldHasWrongValue", $attributeLabel);
|
||||
return -1;
|
||||
} elseif ($value == '') {
|
||||
$new_array_options[$key] = null;
|
||||
$value = null;
|
||||
}
|
||||
//dol_syslog("double value"." sur ".$attributeLabel."(".$value." is '".$attributeType."')", LOG_DEBUG);
|
||||
$new_array_options[$key] = $value;
|
||||
@ -6365,7 +6365,7 @@ abstract class CommonObject
|
||||
$this->errors[] = $langs->trans("ExtraFieldHasWrongValue", $attributeLabel);
|
||||
return -1;
|
||||
} elseif ($value === '') {
|
||||
$this->array_options["options_".$key] = null;
|
||||
$value = null;
|
||||
}
|
||||
//dol_syslog("double value"." sur ".$attributeLabel."(".$value." is '".$attributeType."')", LOG_DEBUG);
|
||||
$this->array_options["options_".$key] = $value;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user