From f713c095b29f575481ea193431c51ac08ea760ef Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 27 Oct 2008 13:26:43 +0000 Subject: [PATCH] "fixed link_widget to link-entry widgets and application type custom fields working again" --- etemplate/inc/class.link_widget.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.link_widget.inc.php b/etemplate/inc/class.link_widget.inc.php index 53d7afcc59..a1af4459e9 100644 --- a/etemplate/inc/class.link_widget.inc.php +++ b/etemplate/inc/class.link_widget.inc.php @@ -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 {