Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.9.1
-
Fix Version/s: None
-
Component/s: Forms Library
-
Labels:None
-
Environment:Arch Linux, Apache 2.2, php 5.2
-
Database:PostgreSQL
-
Affected Branches:MOODLE_19_STABLE
Description
Using the moodleform form lib, if we want to use the repeat_elements function and if we use the &MoodleQuickForm::createElement object to create a textarea an error appear:
Fatal error: Call to undefined method programa_form::getAttribute() in /home/www/qoodle.dev/lib/form/textarea.php on line 73
I replaced this line(73) in the method onQuickFormEvent of the /lib/form/textarea.php file
$this->_formid = $caller->getAttribute('id');
by this one
$this->_formid = $this->getAttribute('id');
and it worked fine.
Agree.
This bug don't allow include 'textarea' in repeating part of form!