Skip to content

Commit

Permalink
Fix default value was not save at creation
Browse files Browse the repository at this point in the history
Conflicts:
	htdocs/core/class/extrafields.class.php
  • Loading branch information
eldy committed Feb 4, 2018
1 parent 3cfb6aa commit 5a60921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/extrafields.class.php
Expand Up @@ -168,7 +168,7 @@ function addExtraField($attrname, $label, $type, $pos, $size, $elementtype, $uni
if ($result > 0 || $err1 == 'DB_ERROR_COLUMN_ALREADY_EXISTS' || $type == 'separate')
{
// Add declaration of field into table
$result2=$this->create_label($attrname, $label, $type, $pos, $size, $elementtype, $unique, $required, $param, $alwayseditable, $perms, $list, $ishidden, $default, $computed, $entity, $langfile, $enabled);
$result2=$this->create_label($attrname, $label, $type, $pos, $size, $elementtype, $unique, $required, $param, $alwayseditable, $perms, $list, $ishidden, $default_value, $computed, $entity, $langfile, $enabled);
$err2=$this->errno;
if ($result2 > 0 || ($err1 == 'DB_ERROR_COLUMN_ALREADY_EXISTS' && $err2 == 'DB_ERROR_RECORD_ALREADY_EXISTS'))
{
Expand Down

0 comments on commit 5a60921

Please sign in to comment.