From 2f4c75a1439dcda78a8b4ece0a57b11c8529be8b Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Wed, 19 May 2010 05:33:36 +0000 Subject: [PATCH] form MDL-22286 Fixed use of property that did not exist --- lib/form/choosecoursefile.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/form/choosecoursefile.php b/lib/form/choosecoursefile.php index 95660a83164..ebcd4d1cfea 100644 --- a/lib/form/choosecoursefile.php +++ b/lib/form/choosecoursefile.php @@ -96,7 +96,8 @@ class MoodleQuickForm_choosecoursefile extends MoodleQuickForm_group $options = $this->_options['options']; } $action = new popup_action('click', $url, $button->getName(), $options); - $OUTPUT->add_action_handler($action, $button->id); + + $button->updateAttributes(array('id'=>$OUTPUT->add_action_handler($action, $button->getAttribute('id')))); } /**