From 6fa51b70a55571f1f76982d047ffc960be2bdaeb Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 19 May 2011 13:01:21 +1200 Subject: [PATCH] MDL-25177 Choice - fix typo for form creation causing pop-up window - thanks to Jason Hardin for fix --- mod/choice/renderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/choice/renderer.php b/mod/choice/renderer.php index 503205294b9..80f33bb338d 100644 --- a/mod/choice/renderer.php +++ b/mod/choice/renderer.php @@ -40,7 +40,7 @@ class mod_choice_renderer extends plugin_renderer_base { $layoutclass = 'vertical'; } $target = new moodle_url('/mod/choice/view.php'); - $attributes = array('method'=>'POST', 'target'=>$target, 'class'=> $layoutclass); + $attributes = array('method'=>'POST', 'action'=>$target, 'class'=> $layoutclass); $html = html_writer::start_tag('form', $attributes); $html .= html_writer::start_tag('ul', array('class'=>'choices' ));