links to images broken in image gallery

Bug #1234943 reported by Dirk Meyer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Critical
Son Nguyen

Bug Description

1.8RC1, Debian, Mysql
I added images to a folder
I added a image galleryblock to a page and chose to display the folder with the images

The images work as expected when used as a image gallery. The bug is when I click the title of the gallertblock. This will show a page with three columns; name, description, date. The hyperlinks to the images from this page are broken.

Revision history for this message
Dirk Meyer (dirkca68) wrote :
Revision history for this message
Aaron Wells (u-aaronw) wrote :

Hi Dirk,

Thanks for the bug report, and thanks for testing the release candidate!

Cheers,
Aaron

Changed in mahara:
milestone: none → 1.8.0
assignee: nobody → Son Nguyen (ngson2000)
status: New → Triaged
importance: Undecided → High
tags: added: regression
Aaron Wells (u-aaronw)
Changed in mahara:
importance: High → Critical
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

patch at https://reviews.mahara.org/2576

No ID change necessary as translators don't need to see this change. This is purely for English.

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Ignore that last comment. It was meant for bug #1230044.

Revision history for this message
Robert Lyon (robertl-9) wrote :

Son Nguyen - I'm not sure if you've started on this or not but you might want to checkout this patch
https://reviews.mahara.org/#/c/2579/

that was for a similar problem with gallery image links to see if it fixes this problem also

Revision history for this message
Son Nguyen (ngson2000) wrote :

Hi Robert;

Yes, your patch will fix this bug

Thanks

Revision history for this message
Robert Lyon (robertl-9) wrote :

Actually the problem might be resolved with

https://reviews.mahara.org/#/c/2577/

The image artefacts don't have blockinstance ids (as they are part of a parent blockinstance) and they were being passed through a function to get their blockinstance title and was throwing error if block instance didn't exist.

Have made it so only artefacts that have block id passed as well use the function.

Revision history for this message
Aaron Wells (u-aaronw) wrote :

Yep, that commit fixes the problem.

Changed in mahara:
status: Triaged → Fix Committed
Aaron Wells (u-aaronw)
tags: removed: regression
Aaron Wells (u-aaronw)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.