Merge pull request #20747 from Quentin-Seekness/patch-2

FIX: Delete an extrafield where type is double
This commit is contained in:
Laurent Destailleur 2022-04-29 15:55:49 +02:00 committed by GitHub
commit a8a6710feb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;