From 8d753b7e693087f4d473383fafe7fbafadf4e5d1 Mon Sep 17 00:00:00 2001 From: Matt Beckett Date: Thu, 26 Apr 2012 10:39:50 -0600 Subject: Fixes deprecation notice for form element input name --- views/default/event_calendar/forms/add_to_group.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/default/event_calendar/forms/add_to_group.php b/views/default/event_calendar/forms/add_to_group.php index 330f72526..a6675819a 100644 --- a/views/default/event_calendar/forms/add_to_group.php +++ b/views/default/event_calendar/forms/add_to_group.php @@ -59,14 +59,14 @@ if ($add_options || $remove_options) { $event_bit = elgg_view('input/hidden', array("internalname" => "event_id","value" => $event_id)); if ($add_options) { echo "

".elgg_echo('event_calendar:add_to_group:add_group_title')."

"; - $add_pulldown = elgg_view("input/dropdown",array("internalname" => "group_id","options_values" => $add_options)); + $add_pulldown = elgg_view("input/dropdown",array("name" => "group_id","options_values" => $add_options)); $submit_button = "

".elgg_view("input/submit",array("value"=>elgg_echo('event_calendar:add_to_group:add_group_button')))."

"; echo elgg_view ('input/form',array("body" => $event_bit.$add_pulldown.$submit_button,"action" => $vars['url']."action/event_calendar/add_to_group")); } if ($remove_options) { echo "

".elgg_echo('event_calendar:add_to_group:remove_group_title')."

"; - $remove_pulldown = elgg_view("input/dropdown",array("internalname" => "group_id","options_values" => $remove_options)); + $remove_pulldown = elgg_view("input/dropdown",array("name" => "group_id","options_values" => $remove_options)); $submit_button = "

".elgg_view("input/submit",array("value"=>elgg_echo('event_calendar:add_to_group:remove_group_button')))."

"; echo elgg_view ('input/form',array("body" => $event_bit.$remove_pulldown.$submit_button,"action" => $vars['url']."action/event_calendar/remove_from_group")); } -- cgit v1.2.3 From f6b8c737fb13df3d611cc0a0f072723aac174b14 Mon Sep 17 00:00:00 2001 From: Matt Beckett Date: Thu, 26 Apr 2012 10:44:19 -0600 Subject: Update views/default/event_calendar/forms/add_to_group.php --- views/default/event_calendar/forms/add_to_group.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/default/event_calendar/forms/add_to_group.php b/views/default/event_calendar/forms/add_to_group.php index a6675819a..f9640733c 100644 --- a/views/default/event_calendar/forms/add_to_group.php +++ b/views/default/event_calendar/forms/add_to_group.php @@ -56,7 +56,7 @@ if ($remove_group) { if ($add_options || $remove_options) { echo '
'; - $event_bit = elgg_view('input/hidden', array("internalname" => "event_id","value" => $event_id)); + $event_bit = elgg_view('input/hidden', array("name" => "event_id","value" => $event_id)); if ($add_options) { echo "

".elgg_echo('event_calendar:add_to_group:add_group_title')."

"; $add_pulldown = elgg_view("input/dropdown",array("name" => "group_id","options_values" => $add_options)); -- cgit v1.2.3