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:

      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

              • 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