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

No linebreaks in frozen textareas

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6.5, 3.7.1, 3.8
    • Fix Version/s: 3.6.7, 3.7.3
    • Component/s: Forms Library
    • Labels:
    • Testing Instructions:
      Hide
      1. Copy the file frozen-textarea.php ( frozen-textarea.php ) to the root folder of your installation.
      2. Browse: YOURMOODLEINSTALLATION/frozen-textarea.php
      3. Confirm that:
        • All three textareas should show a multiline content
        • The frozen text area can't be edited, but you can still tab to it.
        • The hard frozen text area can't be edited and you can't tab to it.
      Show
      Copy the file frozen-textarea.php ( frozen-textarea.php ) to the root folder of your installation. Browse: YOURMOODLEINSTALLATION/frozen-textarea.php Confirm that: All three textareas should show a multiline content The frozen text area can't be edited, but you can still tab to it. The hard frozen text area can't be edited and you can't tab to it.
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Pull Master Branch:
      MDL-66543-master

      Description

      If you enter multi-line text into a textarea and view it in a read-only (frozen) context, the whole text will be displayed as a single line.
      Other elements such as element-text apply readonly/disabled flags to the html element and do not just simply output the saved unformatted text.
      In the attachment you can see a (hard) frozen Textarea before and after the patch.

        Attachments

        1. After.png
          After.png
          11 kB
        2. Before.png
          Before.png
          10 kB
        3. Confirmed and verified.PNG
          Confirmed and verified.PNG
          9 kB
        4. frozen-textarea.php
          2 kB

          Issue Links

            Activity

              People

              Assignee:
              tobias.reischmann Tobias Reischmann
              Reporter:
              tobias.reischmann Tobias Reischmann
              Peer reviewer:
              Luca Bösch
              Integrator:
              Jun Pataleta
              Tester:
              Gladys Basiana
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Nov/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 15 minutes
                  1h 15m