mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Enhance support of default value in extrafields
This commit is contained in:
@@ -528,7 +528,7 @@ class ExtraFields
|
||||
$typedb=$type;
|
||||
$lengthdb=$length;
|
||||
}
|
||||
$field_desc = array('type'=>$typedb, 'value'=>$lengthdb, 'null'=>($required?'NOT NULL':'NULL'));
|
||||
$field_desc = array('type'=>$typedb, 'value'=>$lengthdb, 'null'=>($required?'NOT NULL':'NULL'), 'default'=>$default);
|
||||
|
||||
if ($type != 'separate') // No table update when separate type
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user