Choosing details in image gallery opens a blank modal
Bug #1897829 reported by
Rebecca Blundell
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Lisa Seeto | ||
20.10 |
Fix Released
|
High
|
Lisa Seeto |
Bug Description
Using QA Mahara with the following settings on Windows:
PHP 7.4
Postgres 10.9
Skins enabled
Individual themes enabled
Pre-populated data
Maroon theme
Also exists in master on Ubuntu 18.10 and postgres with Ocean theme
Steps:
As a person with a page, add an image gallery with 5 images.
Save the page and display it.
Click the magnifying glass icon and the resulting details icon
Expected:
A modal appears with details of the image gallery block
Actual:
A blank modal appears
Changed in mahara: | |
assignee: | nobody → Lisa Seeto (lisaseeto) |
status: | New → In Progress |
no longer affects: | mahara/21.04 |
summary: |
- 20.10RC1: Choosing details in image gallery opens a blank modal + Choosing details in image gallery opens a blank modal |
Changed in mahara: | |
milestone: | 20.10.0 → none |
To post a comment you must log in.
I have done some more investigation and confirmed this as a regression:
In 20.04_STABLE the modal opens with the images and download links (see screenshot).
Inspecting the html shows no difference, but the request repsonse from opening the modal shows the following console error in 20.10:
1 request
277 B / 789 B transferred
Finish: 38 ms
error true tion" tion"
error_number 400
error_name "ParameterExcep
error_class "ParameterExcep
error_message "The 'artefactid' parameter is not an integer"
error_rendered "A required parameter is missing or malformed\n\nThe 'artefactid' parameter is not an integer"
compared with a working response below:
1 request
8.74 KB / 9.30 KB transferred
Finish: 77 ms
error false "folder- card\"> \n \n <h4 class=\ "sr-only\ ">\n Folder contents:\n </h4>\n\n <div class=\"fullwidth file-download- list\"> \n <ul class=\ "list-group\ ">\n \n <li class=\ "filedownload- item list-group- item\"> \n <a class=\ "modal_ link\" title=\ "405078_ tumannost_ krasnaya_ xabbl_teleskop_ 1680x1050_ (www.GdeFon. ru).jpg\ " data-toggle= \"modal- docked\ " data-target= \"#configureblo ck\" href=\"#\" data-blockid=\"83\" data-ar… itle=\" Download image [www.imagesplit ter.net] (1).jpeg [19.2K]\"></span>\n <span class=\ "sr-only\ ">Download image [www.imagesplit ter.net] (1).jpeg [19.2K]</span>\n </a>\n \n </li>\n \n </ul>\n </div>\n \n \n</div> \n\n<script> \n jQuery( '#configurebloc k .modal_ link'). off('click' );\n jQuery( '#configurebloc k .modal_ link'). on('click' , function(e) {\n open_modal(e);\n toggleDetailsBt n();\n });\n</script>\n", message: "" } "folder- card\"> \n \n <h4 class=\ "sr-only\ ">\n Folder contents:\n </h4>\n\n <div class=\"fullwidth file-download- list\"> \n <ul class=\ "list-group\ ">\n \n <li class=\ "filedownload- item list-group- item\"> \n <a class=\ "modal_ link\" title=\ "405078_ tumannost_ krasnaya_ xabbl_teleskop_ 1680x1050_ (www.GdeFon. ru).jpg\ " data-toggle= \"modal- docked\ " data-target= \"#configureblo ck\" href=\"#\" data-blockid=\"83\" data-ar… itle=\" Download image [www.imagesplit ter.net] (1).jpeg [19.2K]\"></span>\n <span class=\ "sr-only\ ">Download image [www.imagesplit ter.net] (1).jpeg [19.2K]</span>\n </a>\n \n </li>\n \n </ul>\n </div>\n \n \n</div> \n\n<script> \n jQuery( '#configurebloc k .modal_ link'). off('click' );\n jQuery( '#configurebloc k .modal_ link'). on('click' , function(e) {\n open_modal(e);\n toggleDetailsBt n();\n });\n</script>\n"
message Object { title: "Placeholder", html: "\n\n\n\n<div id=\"commentfiles\" class=\
message ""
title "Placeholder"
html "\n\n\n\n<div id=\"commentfiles\" class=\
returnCode 0