mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 20:01:36 +02:00
fix for group box in calendar
This commit is contained in:
parent
e82a7bebc8
commit
2f10a6cc28
@ -174,7 +174,7 @@
|
|||||||
$db2->query("SELECT account_lid FROM accounts WHERE account_id=".$cal_info->owner,__LINE__,__FILE__);
|
$db2->query("SELECT account_lid FROM accounts WHERE account_id=".$cal_info->owner,__LINE__,__FILE__);
|
||||||
$db2->next_record();
|
$db2->next_record();
|
||||||
$user_groups = $phpgw->accounts->read_group_names($db2->f("account_lid"));
|
$user_groups = $phpgw->accounts->read_group_names($db2->f("account_lid"));
|
||||||
|
|
||||||
display_item(lang("Groups"),$sb->getGroups($user_groups,$cal_info->groups,"cal[groups][]"));
|
display_item(lang("Groups"),$sb->getGroups($user_groups,$cal_info->groups,"cal[groups][]"));
|
||||||
|
|
||||||
// Participants
|
// Participants
|
||||||
|
@ -207,12 +207,18 @@
|
|||||||
{
|
{
|
||||||
global $phpgw;
|
global $phpgw;
|
||||||
|
|
||||||
if(!$name) $name = "n_groups[]";
|
if(!$name) $name = "n_groups[]";
|
||||||
$out = '<select name="' . $name . '" multiple>';
|
$out = '<select name="' . $name . '" multiple>';
|
||||||
while (list($null,$group) = each($groups)) {
|
while (list($null,$group) = each($groups)) {
|
||||||
$out .= '<option value="' . $group[0] . '"';
|
$out .= '<option value="' . $group[0] . '"';
|
||||||
if (ereg("," . $group[0] . ",", $selected))
|
if (strtolower(gettype($selected)) == strtolower("array")) {
|
||||||
{
|
for($i=0;$i<count($selected);$i++) {
|
||||||
|
if ($group[0] == $selected[$i]) {
|
||||||
|
$out .= " SELECTED";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} elseif (ereg("," . $group[0] . ",", $selected)) {
|
||||||
$out .= " SELECTED";
|
$out .= " SELECTED";
|
||||||
}
|
}
|
||||||
$out .= ">" . $group[1] . "</option>\n";
|
$out .= ">" . $group[1] . "</option>\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user