situation: I have very standart node gallery with 4+1=5 nodes (gallery image) in it. 4 published images, 1 is unpublished.
When I view gallery node where images are displayed as thumbnails I see 4 thumbs, but image count says 5.
When I click last (4th) thumb, image opens, but in gallery navigation I also see 4/5 and when I click next I am taken to unpublished (5th) image.

maybe any existing solutions for this?

CommentFileSizeAuthor
#1 published.patch1.72 KBjustintime

Comments

justintime’s picture

Assigned: Unassigned » justintime
Status: Active » Needs review
StatusFileSize
new1.72 KB

Nice catch. Try the attached patch and let me know if it works.

Daugilas’s picture

Status: Needs review » Fixed

Perfect!

thanks for fast reply and keep up the good work!

Daugilas’s picture

Status: Fixed » Needs work

Sorry for too quick response, I was just so happy that my problem went away :)

The above patch works fine and fixes my problem, but
also in 'gallery list' under cover img there is img count which still includes unpublished images. Again, another query to edit a little bit.
I don't have time to go through all the code, but I think it would be good to check all querys. some of them are not relevant though.

Another thing that I noticed is that if you unpublish img which is gallery's cover. It still stays as a cover, and thats a great feature at least for me. As now I can easily make gallery's cover totally different from any img in gallery.

justintime’s picture

Status: Needs work » Fixed

Found this query, and committed the fix into 2.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.