mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
If template has a tree & a selectbox with the same ID (addressbook.edit), tree can play nice with the selectbox and provide compatible data so it still works
This commit is contained in:
parent
ffe2f1677b
commit
ea77d9704e
@ -203,7 +203,18 @@ class etemplate_widget_tree extends etemplate_widget
|
||||
$cat2path[$cat['id']] = $path = ($cat['parent'] ? $cat2path[$cat['parent']].'/' : '').(string)$cat['id'];
|
||||
|
||||
// 1D array
|
||||
$options[$cat['id']] = $cat + array('text' => $cat['name'], 'path' => $path);
|
||||
$options[$cat['id']] = $cat + array(
|
||||
'text' => $s,
|
||||
'path' => $path,
|
||||
|
||||
/*
|
||||
These ones to play nice when a user puts a tree & a selectbox with the same
|
||||
ID on the form (addressbook edit):
|
||||
if tree overwrites selectbox options, selectbox will still work
|
||||
*/
|
||||
'label' => $s,
|
||||
'title' => $cat['description']
|
||||
);
|
||||
|
||||
// Tree in array
|
||||
//$options[$cat['parent']][] = $cat;
|
||||
|
Loading…
Reference in New Issue
Block a user