mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 16:29:22 +01:00
Fixed the parciapant list. Its now working again
This commit is contained in:
parent
21f29756b1
commit
37d53dce3a
@ -273,9 +273,8 @@ function validate_and_submit() {
|
|||||||
. "<TD>\n<SELECT NAME=\"participants[]\" multiple size=\"$size\">\n";
|
. "<TD>\n<SELECT NAME=\"participants[]\" multiple size=\"$size\">\n";
|
||||||
|
|
||||||
while ($phpgw->db->next_record()) {
|
while ($phpgw->db->next_record()) {
|
||||||
echo "<option value=\"" . $phpgw->db->f("loginid") . "\"";
|
echo "<option value=\"" . $phpgw->db->f("account_lid") . "\"";
|
||||||
if (($participants[$phpgw->db->f("account_lid")]
|
if ($participants[$phpgw->db->f("account_lid")])
|
||||||
|| $phpgw->db->f("account_lid") == $loginid))
|
|
||||||
echo " selected";
|
echo " selected";
|
||||||
|
|
||||||
// Change this to use accounts->display_full_name()
|
// Change this to use accounts->display_full_name()
|
||||||
@ -287,9 +286,9 @@ function validate_and_submit() {
|
|||||||
echo "</option>\n";
|
echo "</option>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<input type=\"hidden\" name=\"participants[]\" value=\""
|
echo "</select><input type=\"hidden\" name=\"participants[]\" value=\""
|
||||||
. $phpgw_info["user"]["userid"] ."\">"
|
. $phpgw_info["user"]["userid"] ."\">"
|
||||||
. "</select></td></tr>\n";
|
. "</td></tr>\n";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
@ -167,17 +167,18 @@ if (! $error) {
|
|||||||
$id = $phpgw->db->f(0);
|
$id = $phpgw->db->f(0);
|
||||||
|
|
||||||
|
|
||||||
for ($i = 0; $i < count($participants); $i++) {
|
while ($participant = each($participants)) {
|
||||||
|
// for ($i = 0; $i < count($participants); $i++) {
|
||||||
// Rewrite
|
// Rewrite
|
||||||
$sql = "INSERT INTO webcal_entry_user (cal_id,cal_login,cal_status ) "
|
$sql = "INSERT INTO webcal_entry_user (cal_id,cal_login,cal_status ) "
|
||||||
. "VALUES ($id, '" . $participants[$i] . "', 'A')";
|
. "VALUES ($id, '" . $participant[1] . "', 'A')";
|
||||||
$phpgw->db->query($sql);
|
$phpgw->db->query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count($participants) == 0)
|
// if (count($participants) == 0)
|
||||||
$phpgw->db->query("insert into webcal_entry_user (cal_id,cal_login,cal_status"
|
// $phpgw->db->query("insert into webcal_entry_user (cal_id,cal_login,cal_status"
|
||||||
. ") values ($id,'" . $phpgw_info["user"]["userid"] . "','A' )");
|
// . ") values ($id,'" . $phpgw_info["user"]["userid"] . "','A' )");
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (strlen($rpt_type) || ! strcmp($rpt_type,'none') == 0) {
|
if (strlen($rpt_type) || ! strcmp($rpt_type,'none') == 0) {
|
||||||
// clearly, we want to delete the old repeats, before inserting new...
|
// clearly, we want to delete the old repeats, before inserting new...
|
||||||
|
Loading…
Reference in New Issue
Block a user