Fix edit of extrafields link when empty
This commit is contained in:
parent
9a386da7f5
commit
a8ca8c7a1f
@ -2088,6 +2088,7 @@ class ExtraFields
|
||||
else
|
||||
{
|
||||
$value_key=GETPOST("options_".$key);
|
||||
if (in_array($key_type, array('link')) && $value_key == '-1') $value_key = '';
|
||||
}
|
||||
|
||||
$object->array_options["options_".$key]=$value_key;
|
||||
|
||||
@ -85,6 +85,7 @@ if (empty($reshook) && is_array($extrafields->attributes[$object->table_element]
|
||||
else
|
||||
{
|
||||
$value = $object->array_options["options_" . $key];
|
||||
//var_dump($key.' - '.$value);
|
||||
}
|
||||
if ($extrafields->attributes[$object->table_element]['type'][$key] == 'separate')
|
||||
{
|
||||
@ -178,7 +179,7 @@ if (empty($reshook) && is_array($extrafields->attributes[$object->table_element]
|
||||
}
|
||||
else
|
||||
{
|
||||
//print $key.'-'.$value.'-'.$object->table_element;
|
||||
//var_dump($key.'-'.$value.'-'.$object->table_element);
|
||||
print $extrafields->showOutputField($key, $value, '', $object->table_element);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user