Moodle

Using &MoodleQuickForm::createElement to create Textarea fails

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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.

Activity

Hide
Dmitry Pupinin added a comment -

Agree.
This bug don't allow include 'textarea' in repeating part of form!

Show
Dmitry Pupinin added a comment - Agree. This bug don't allow include 'textarea' in repeating part of form!
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (5)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: