Open Badge details aren't shown

Bug #1940447 reported by Stefan Bäcker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Doris Tam
20.04
Fix Released
High
Unassigned
20.10
Fix Released
High
Unassigned
21.04
Fix Released
High
Dianne Tennent

Bug Description

Create a new page and add an open badges block.
Fill in badges, in our case from openbadgepassport.
View that page.
Clicking on an open badge does not open a modal but gives an error message in the browsers console:

Uncaught ReferenceError: showBadgeContent is not defined
    at HTMLImageElement.<anonymous> (<anonymous>:5:17)
    at HTMLDivElement.dispatch (jquery.js?v=8252:2)
    at HTMLDivElement.v.handle (jquery.js?v=8252:2)
(anonymous) @ VM917:5
dispatch @ jquery.js?v=8252:2
v.handle @ jquery.js?v=8252:2

Mahara 21.04.1 on Ubuntu 20.04 LTS
nginx
MariaDB 10.3
Firefox 91.0 / Chrome 92.0.4515.131

Same problem on current demo.mahara.org site

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

Thank you for this report. Since it happens on demo.mahara.org as well, it also happens on Postgres.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/11983

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/11983
Committed: https://git.mahara.org/mahara/mahara/commit/6daf64583854adf5151eb331dc5840e5c539d614
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 6daf64583854adf5151eb331dc5840e5c539d614
Author: Dianne Tennent <email address hidden>
Date: Thu Sep 9 16:03:56 2021 +1200

Bug 1940447: Fix getting openbadge block js

Generic fix inside the get_all_blocktype_javascript function

Change-Id: Ib5baa5a2a9b1da3dbf0b416cdf27772d3a1e5ba5

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "21.04_STABLE" branch: https://reviews.mahara.org/11986

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Patch for "20.10_STABLE" branch: https://reviews.mahara.org/11987

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Patch for "20.04_STABLE" branch: https://reviews.mahara.org/11988

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/11988
Committed: https://git.mahara.org/mahara/mahara/commit/39796126ae3818dda9d7563e3d4dd1c2ce32369a
Submitter: Robert Lyon (<email address hidden>)
Branch: 20.04_STABLE

commit 39796126ae3818dda9d7563e3d4dd1c2ce32369a
Author: Dianne Tennent <email address hidden>
Date: Thu Sep 9 16:03:56 2021 +1200

Bug 1940447: Fix getting openbadge block js

Generic fix inside the get_all_blocktype_javascript function

Change-Id: Ib5baa5a2a9b1da3dbf0b416cdf27772d3a1e5ba5
(cherry picked from commit 6daf64583854adf5151eb331dc5840e5c539d614)

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/11987
Committed: https://git.mahara.org/mahara/mahara/commit/9337a21ef7b1d7b4a8b922b753d5935ef649102d
Submitter: Robert Lyon (<email address hidden>)
Branch: 20.10_STABLE

commit 9337a21ef7b1d7b4a8b922b753d5935ef649102d
Author: Dianne Tennent <email address hidden>
Date: Thu Sep 9 16:03:56 2021 +1200

Bug 1940447: Fix getting openbadge block js

Generic fix inside the get_all_blocktype_javascript function

Change-Id: Ib5baa5a2a9b1da3dbf0b416cdf27772d3a1e5ba5
(cherry picked from commit 6daf64583854adf5151eb331dc5840e5c539d614)

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/11986
Committed: https://git.mahara.org/mahara/mahara/commit/0dd420046a7f5690577c584083f3a1fea66691a3
Submitter: Robert Lyon (<email address hidden>)
Branch: 21.04_STABLE

commit 0dd420046a7f5690577c584083f3a1fea66691a3
Author: Dianne Tennent <email address hidden>
Date: Thu Sep 9 16:03:56 2021 +1200

Bug 1940447: Fix getting openbadge block js

Generic fix inside the get_all_blocktype_javascript function

Change-Id: Ib5baa5a2a9b1da3dbf0b416cdf27772d3a1e5ba5
(cherry picked from commit 6daf64583854adf5151eb331dc5840e5c539d614)

no longer affects: mahara/21.10
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.