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

Do not call grandparent constructor in form elements

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: Forms Library
    • Labels:
      None
    • Affected Branches:
      MOODLE_31_STABLE

      Description

      During MDL-52081 it was noticed that the form elements often call constructor of a grandparent instead of parent. This is not a good coding style and is probably result of copy-pasting the code with php4-style constructors where constructor was called by name

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: