From bfd333b0c285386cdbacf435390ae611c81c5fdf Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 6 Jan 2012 15:34:47 +0000 Subject: [PATCH] Limit custom field app entry possibilities to apps that support query and title, which are required for custom field to work properly --- etemplate/inc/class.customfields_widget.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.customfields_widget.inc.php b/etemplate/inc/class.customfields_widget.inc.php index dad6cf9ff9..2bc9500e5d 100644 --- a/etemplate/inc/class.customfields_widget.inc.php +++ b/etemplate/inc/class.customfields_widget.inc.php @@ -165,7 +165,7 @@ class customfields_widget $cell['sel_options'][$lname] = lang($label); $fields_with_vals[]=$lname; } - $link_types = egw_link::app_list(); + $link_types = array_intersect(egw_link::app_list('query'),egw_link::app_list('title')); ksort($link_types); foreach($link_types as $lname => $label) $cell['sel_options'][$lname] = '- '.$label; $cell['no_lang'] = true; @@ -537,7 +537,7 @@ class customfields_widget if (is_null($link_types)) { - $link_types = array_keys(egw_link::app_list()); + $link_types = array_keys(array_intersect(egw_link::app_list('query'),egw_link::app_list('title'))); $link_types[] = 'link-entry'; } return $link_types;