mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
changed retrieving of pm_id and pe_id to etemplate_request::read() (thanks Ralf) - added tiny method to check for global eroles - prevent displaying global eroles in etemplate editor
This commit is contained in:
parent
345542b2ab
commit
0670e247e9
@ -234,7 +234,7 @@ class select_widget
|
||||
{
|
||||
if ($id && ($name = $eroles->id2title($id)))
|
||||
{
|
||||
$cell['sel_options'][$id] = $name;
|
||||
$cell['sel_options'][$id] = $name.($eroles->is_global($id) ? ' ('.lang('Global').')' : '');
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -247,9 +247,8 @@ class select_widget
|
||||
|
||||
foreach($eroles->get_free_eroles() as $id => $data)
|
||||
{
|
||||
$global = $data['pm_id'] == 0 ? ' ('.lang('Global').')' : '';
|
||||
$cell['sel_options'][$data['role_id']] = array(
|
||||
'label' => $data['role_title'] . $global,
|
||||
'label' => $data['role_title'].($eroles->is_global($data['role_id']) ? ' ('.lang('Global').')' : ''),
|
||||
'title' => $data['role_description'],
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user