Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-52797

HTML_QuickForm method _loadElement invokes a non-static function statically

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Not a bug
    • Affects Version/s: 2.9.4, 3.0.2, 3.1.4
    • Fix Version/s: None
    • Component/s: Forms Library
    • Labels:
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE

      Description

      Method _loadElement in lib/pear/HTML/QuickForm.php statically invokes own method isTypeRegistered on line 559 like this

      if (!HTML_QuickForm::isTypeRegistered($type)) {

      while it is a not-static method and should be invoked like this

      if (!$this->isTypeRegistered($type)) {

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              wjroes W.J. Roes
              Peer reviewer:
              John Okely
              Integrator:
              David Monllaó
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: