"fixed link_widget to link-entry widgets and application type custom fields working again"

This commit is contained in:
Ralf Becker 2008-10-27 13:26:43 +00:00
parent 814eb013f1
commit f713c095b2

View File

@ -463,10 +463,10 @@ class link_widget
$tmpl->set_validation_error($name,lang('Field must not be empty !!!'),'');
return true;
}
if (isset($extension_data['default']))
if (is_array($extension_data['default']))
{
$value = $extension_data['default'];
$value['current']=$value_in['app'].':'.$value_in['id'];
$value['current'] = $extension_data['app'] ? $value_in['id'] : $value_in['app'].':'.$value_in['id'];
}
else
{