mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
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:
parent
060cf6073a
commit
86a1e4fbfa
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user