Fix invalid options showing in link-entry custom field list by querying for the actually needed capabilities, and explictly add filemanager, which does not support them but gets special handling.

This commit is contained in:
Nathan Gray 2015-10-05 15:50:30 +00:00
parent 060cf6073a
commit 86a1e4fbfa

View File

@ -188,7 +188,10 @@ class etemplate_widget_customfields extends etemplate_widget_transformer
$sel_options[$lname] = lang($label);
$fields_with_vals[]=$lname;
}
$link_types = egw_link::app_list('query');
$link_types = array_intersect_key(egw_link::app_list('query'),egw_link::app_list('title'));
// Explicitly add in filemanager, which does not support query or title
$link_types['filemanager'] = lang('filemanager');
ksort($link_types);
foreach($link_types as $lname => $label)
{