Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harden Image Check In Media Library #652

Merged
merged 1 commit into from
Mar 25, 2020
Merged

Conversation

jeffersonrabb
Copy link
Contributor

As described in #651, if the media library contains a recently uploaded asset with no thumbnail, the image upload UI breaks completely. This PR resolves the issue by hardening the check to be sure that the image object has sizes defined.

Fixes: #651

How to test the changes in this Pull Request:

  1. Navigate to Media Library, upload any PDF.
  2. On master branch, view published Liveblog page, and click Insert Image.
  3. Observe the UI breaks with errors in the Javascript console.
  4. Check out this branch, repeat step 3.
  5. Observe the Media Library loads normally.

Copy link

@anigeluk anigeluk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your PR has passed VIP code review. You can now merge into master to deploy when you are ready. Find out more in our documentation.

Copy link
Contributor

@philipjohn philipjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected

@philipjohn philipjohn merged commit b8c3054 into master Mar 25, 2020
@philipjohn philipjohn deleted the fix/thumbnail-error branch March 25, 2020 15:03
@GaryJones GaryJones added this to the 1.9.6 milestone Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image Uploader Fails If Asset Without Thumbnail Recently Uploaded
4 participants