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

Image preview tries to load preview when no image is set

XMLWordPrintable

    • MOODLE_401_STABLE
    • MOODLE_401_STABLE
    • MDL-76476-401
    • Hide
      1. Ensure browser console is open so you can see errors
      2. Enable and set the new TinyMCE as your preferred editor
      3. Navigate to profile from user menu
      4. Press Edit profile
      5. In the Description editor press Image
      6. Confirm no console error about undefined resource
      7. Select an image from one of the repositories
      8. Confirm image preview is shown in the modal
      9. Give the image a description ("Describe this image...") and press save changes
      10. Press on the image inside the editor
      11. Press the Image button in the editor
      12. Confirm image preview is shown in the modal
      13. Confirm there are still not console errors about undefined resource
      Show
      Ensure browser console is open so you can see errors Enable and set the new TinyMCE as your preferred editor Navigate to profile from user menu Press Edit profile In the Description editor press Image Confirm no console error about undefined resource Select an image from one of the repositories Confirm image preview is shown in the modal Give the image a description (" Describe this image... ") and press save changes Press on the image inside the editor Press the Image button in the editor Confirm image preview is shown in the modal Confirm there are still not console errors about undefined resource

      When opening the "Insert image" dialogue, the preview image is loaded before an image is set.

      This leads to a network request for the currentURL + /undefined.

      We should only load the image when one is set.

        1. 401_Step12-13.png
          401_Step12-13.png
          101 kB
        2. 401_Step6.png
          401_Step6.png
          102 kB
        3. 401_Step8.png
          401_Step8.png
          73 kB
        4. confirmation.gif
          confirmation.gif
          356 kB
        5. Master_Step12-13.png
          Master_Step12-13.png
          178 kB
        6. Master_Step6.png
          Master_Step6.png
          105 kB
        7. Master_Step8.png
          Master_Step8.png
          107 kB

            pholden Paul Holden
            dobedobedoh Andrew Lyons
            Huong Nguyen Huong Nguyen
            Jun Pataleta Jun Pataleta
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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