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

User note editors incorrectly / inconsistently handling URL text and line-breaks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.3.8, 4.4.4
    • 3.9.13, 3.11.6, 4.0, 4.3.7, 4.4.3
    • User management
    • MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_403_STABLE, MOODLE_404_STABLE
    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MDL-74188-403
    • MDL-74188-404
    • Hide
      1. Log in as admin
      2. Create course
      3. Navigate to course participants
        • Ensure you are enrolled as a teacher (you should be by default)
      4. Select yourself in the list of users
      5. Choose With selected users > Add a new note
      6. Add the following content, and save:

        http://moodle.com :)
         
        First
        

      7. Navigate to your profile from user menu
      8. Press Notes
      9. Press Add a new note
      10. Add the following content, and save:

        http://moodle.com :)
         
        Second
        

      11. Confirm when subsequently listing notes that both are correctly formatted (hyperlinked text, smiley and line breaks)
      Show
      Log in as admin Create course Navigate to course participants Ensure you are enrolled as a teacher (you should be by default) Select yourself in the list of users Choose With selected users > Add a new note Add the following content, and save: http://moodle.com :)   First Navigate to your profile from user menu Press Notes Press Add a new note Add the following content, and save: http://moodle.com :)   Second Confirm when subsequently listing notes that both are correctly formatted (hyperlinked text, smiley and line breaks)

      Encountered behaviour:

      1) When adding user notes via modal :
      Participants > Select user > With selected users... > Add a new Note:

      • when URL text links are added, they appear to correctly save, and then show as clickable live links when the note is viewed;
      • however, line breaks are not retained (when reading the note, user sees joined lines separated only by single spaces)

      2) On the other hand, when using the Notes > Add / Edit note accessible from a user's profile page (i.e. on a page like .../notes/edit.php?id={user_id} ):

      • URL text links when (re-)saved fail to produce clickable links when the note is later viewed;
      • line breaks appear to save correctly, and view correctly (multiple lines).

      EXPECTED behaviour:

      Both note editors should work consistently:
      1) URL text links should always save in such a way that clickable links are displayed when the note is viewed;

      2) line breaks should be correctly saved - so they do not merge but displays in multiple lines when the note is viewed.

      (NOTE: Notes are also viewed and edited in the Mobile app, so any fixes should also be tested in the app.)

            pholden Paul Holden
            pmk Przemek Kaszubski
            Stevani Andolo Stevani Andolo
            Ilya Tregubov Ilya Tregubov
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.