mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:38:53 +01:00
fixed problem in user-selection, if users&groups were selected, you could not select just the group
This commit is contained in:
parent
1f782cf644
commit
4581ff7c93
@ -251,7 +251,8 @@ class uical
|
|||||||
if ($state == 'owner')
|
if ($state == 'owner')
|
||||||
{
|
{
|
||||||
// only change the owners of the same resource-type as given in set_state[owner]
|
// only change the owners of the same resource-type as given in set_state[owner]
|
||||||
$res_type = is_numeric($set_states['owner']{0}) ? false : $set_states['owner']{0};
|
$set_owners = explode(',',$set_states['owner']);
|
||||||
|
$res_type = is_numeric($set_owners[0]) ? false : $set_owners[0]{0};
|
||||||
$owners = explode(',',$states['owner'] ? $states['owner'] : $default);
|
$owners = explode(',',$states['owner'] ? $states['owner'] : $default);
|
||||||
foreach($owners as $key => $owner)
|
foreach($owners as $key => $owner)
|
||||||
{
|
{
|
||||||
@ -260,7 +261,6 @@ class uical
|
|||||||
unset($owners[$key]);
|
unset($owners[$key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$set_owners = explode(',',$set_states['owner']);
|
|
||||||
if (!$res_type || !in_array($res_type.'0',$set_owners))
|
if (!$res_type || !in_array($res_type.'0',$set_owners))
|
||||||
{
|
{
|
||||||
$owners = array_merge($owners,$set_owners);
|
$owners = array_merge($owners,$set_owners);
|
||||||
|
Loading…
Reference in New Issue
Block a user