Skip to content

Commit

Permalink
fix #14649
Browse files Browse the repository at this point in the history
  • Loading branch information
FHenry committed Oct 20, 2020
1 parent 6bba249 commit d4fd71d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/commonobject.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -7186,7 +7186,7 @@ public function showOptionals($extrafields, $mode = 'view', $params = null, $key
// HTML, select, integer and text add default value
if (in_array($extrafields->attributes[$this->table_element]['type'][$key], array('html', 'text', 'select', 'int')))
{
if ($action == 'create') $value = GETPOSTISSET($keyprefix.'options_'.$key.$keysuffix) ? GETPOST($keyprefix.'options_'.$key.$keysuffix, 'none', 3) : $extrafields->attributes[$this->table_element]['default'][$key];
if ($action == 'create') $value = GETPOSTISSET($keyprefix.'options_'.$key.$keysuffix) ? GETPOST($keyprefix.'options_'.$key.$keysuffix, 'none', 3) : ($this->array_options['options_'.$key] ? $this->array_options['options_'.$key] : $extrafields->attributes[$this->table_element]['default'][$key]);
else $value = $this->array_options['options_'.$key];
}

Expand Down

0 comments on commit d4fd71d

Please sign in to comment.