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

choosecoursefileorimsrepo form element doesn't allow attributes to be specified for text field

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.5
    • Fix Version/s: 1.9.6
    • Component/s: Forms Library
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Identical in nature to MDL-19112 as noted by Eloy

      It seems that the "choosecoursefileorimsrepo" formslib group element doesn't allow to specify any attribute in the $attributes parameter. They are set to the group element without effect in the text field. So things like size or maxlength cannot be specified.

      As the group only has 2 elements (buttton and text), make it to forward any attribute received straight to the text element.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  21/Oct/09