mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
allow to specify multiple, comma-speparated id's for the link-entry widget
This commit is contained in:
parent
32771223fe
commit
c02a67c9af
@ -338,13 +338,19 @@
|
||||
{
|
||||
list($app,$id) = explode(':',$value);
|
||||
}
|
||||
if ($id && ($title = $this->link->title($app,$id)))
|
||||
$titles = array();
|
||||
foreach(explode(',',$id) as $id)
|
||||
{
|
||||
if ($id && ($title = $this->link->title($app,$id)))
|
||||
{
|
||||
$titles[$id] = $title;
|
||||
}
|
||||
}
|
||||
if ($titles)
|
||||
{
|
||||
$titles[''] = lang('new search').' ...';
|
||||
$selectbox =& $tpl->get_widget_by_name('id');
|
||||
$selectbox['sel_options'] = array(
|
||||
$id => $title,
|
||||
'' => lang('new search').' ...',
|
||||
);
|
||||
$selectbox['sel_options'] = $titles;
|
||||
// remove link_hide class from select-box-line
|
||||
$span =& $tpl->get_cell_attribute('select_line','span');
|
||||
$span = str_replace('link_hide','',$span);
|
||||
|
Loading…
Reference in New Issue
Block a user