Limit custom field app entry possibilities to apps that support query and title, which are required for custom field to work properly

This commit is contained in:
Nathan Gray 2012-01-05 17:04:54 +00:00
parent 1b8e361e6a
commit 32b1cc2a29

View File

@ -167,7 +167,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;