Skip to content
Snippets Groups Projects
Commit 9f40d520 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

If a post was done, we must keep value of post, even if value is ''

parent 3012e9ee
No related branches found
No related tags found
No related merge requests found
......@@ -782,7 +782,7 @@ if ($action == 'create')
{
foreach($extrafields->attribute_label as $key=>$label)
{
$value=(GETPOST('options_'.$key,'alpha')?GETPOST('options_'.$key,'alpha'):$object->array_options["options_".$key]);
$value=(isset($_POST["options_".$key])?GETPOST('options_'.$key,'alpha'):$object->array_options["options_".$key]);
print '<tr><td>'.$label.'</td><td>';
print $extrafields->showInputField($key,$value);
print '</td></tr>'."\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment