Add listing image uploader issue with gallery extension (Loading issue on Image Uploader)#2461
Merged
Armanul46 merged 4 commits intosovware:developmentfrom Aug 28, 2025
Conversation
- Updated init() to check if the first container has the class 'listing_gallery_ext' - If found, it reorders the container so that 'listing_gallery_ext' is always the last item - Prevents layout/initialization issues caused by incorrect container ordering
Member
|
@iamibrahimriaz This error occurs whenever an image is uploaded https://prnt.sc/J3stHuHDEQJT |
…into fix/add-listing-image-uploader-issue-with-gallery-extension
Member
|
Looks good |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Type
What kind of change does this PR introduce?
Description
When Gallery Images are added before Images in the add-listing form, the system mistakenly treats the gallery uploader as the primary media uploader.
Before: https://prnt.sc/tabyLXhDr-qa
After: https://prnt.sc/UrRukC7W1id9
Fix
This PR ensures that the Gallery Image Uploader (listing_gallery_ext) is always moved to the end of the media uploader container list. By doing so, the correct container is consistently recognized as the main media uploader.
Change media uploader to insert new thumbnails at the top of the list instead of at the bottom, ensuring newest uploaded files are displayed first.
Impact
Prevents the gallery uploader from being misidentified as the default uploader
Maintains consistent ordering of media uploader containers & uploaded items
Improves reliability of the add-listing form media handling
Any linked issues
Fixes #
Checklist