From b63f76ef0aa04664efd053a604a1844def3aef40 Mon Sep 17 00:00:00 2001 From: Sven Vanpoucke Date: Mon, 1 Sep 2008 11:10:55 +0200 Subject: [PATCH] [svn r16190] Fixed a bug where the selected groups were not added to the database --- main/calendar/agenda.inc.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main/calendar/agenda.inc.php b/main/calendar/agenda.inc.php index 4bb67b327e..490dc15e7b 100644 --- a/main/calendar/agenda.inc.php +++ b/main/calendar/agenda.inc.php @@ -1,4 +1,4 @@ -\n"; // the buttons for adding or removing groups/users echo "\n\t\t\n"; echo "\t\t", "\n\t\t

 

", "\n\t\t"; echo "\t\t\n"; echo "\n\t\t\n"; @@ -639,13 +639,13 @@ function store_new_agenda_item() (title,content, start_date, end_date) VALUES ('".$title."','".$content."', '".$start_date."','".$end_date."')"; - + echo($sql); $result = api_sql_query($sql,__FILE__,__LINE__) or die (Database::error()); $last_id=Database::insert_id(); // store in last_tooledit (first the groups, then the users $to=$_POST['selectedform']; - + if ((!is_null($to))or (!empty($_SESSION['toolgroup']))) // !is_null($to): when no user is selected we send it to everyone { $send_to=separate_users_groups($to); @@ -2509,7 +2509,7 @@ function show_add_form($id = '') ?> - +