Editing Dashboard produces a console error if inbox messages present

Bug #1911358 reported by Lisa Seeto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
19.10
Fix Released
Medium
Unassigned
20.04
Fix Released
Medium
Unassigned
20.10
Fix Released
Medium
Unassigned
21.04
Fix Released
Medium
Lisa Seeto

Bug Description

A console error is currently being produced if the account holder has at least one message in their inbox and they select to edit their Dashboard.

1. Log into a site on as any user with an inbox message (i.e. you can quickly receive one from another user via a Friend request)
2. Open the Browser Console (on Firefox via "F12", Chrome on Linux via SHIFT+CNTRL+J)
3. Navigate to the Dashboard and select 'Edit Dashboard'. Observe the console.
Expected results:
The console is free of any errors.
Actual results:
The following error is produced:
Uncaught TypeError: dock.init is not a function
    <anonymous> http://mahara/view/blocks.php?id=6:130
    jQuery 7
    <anonymous> http://mahara/view/blocks.php?id=6 line 2 > injectedScript:2
    jQuery 3
    addWidget http://mahara/js/gridstack/gridstack.js?v=2197:1371
    addNewWidget http://mahara/js/gridlayout.js?v=2197:265
    loadGrid http://mahara/js/gridlayout.js?v=2197:81
    each jQuery
    loadGrid http://mahara/js/gridlayout.js?v=2197:60
    <anonymous> http://mahara/view/blocks.php?id=6:114
    jQuery 13

Lisa Seeto (lisaseeto)
Changed in mahara:
assignee: nobody → Lisa Seeto (lisaseeto)
status: New → In Progress
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/11515

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

Reviewed: https://reviews.mahara.org/11515
Committed: https://git.mahara.org/mahara/mahara/commit/7512d7faef859f6f8d45aa5d0ac1389d5e6eb06d
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 7512d7faef859f6f8d45aa5d0ac1389d5e6eb06d
Author: Lisa Seeto <email address hidden>
Date: Wed Jan 13 14:20:22 2021 +1300

Bug 1911358: Editing Dashboard produces a console error if inbox messages present

- ajusted the way that jquery triggers pageupdated event

Change-Id: Iecb789ad73f76e3b2a9befdd0b6387f9ebd26efb
Signed-off-by: Lisa Seeto <email address hidden>

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

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

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

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

commit 566bf2f05f4d83eedf8003bc863b7105e435cff3
Author: Lisa Seeto <email address hidden>
Date: Wed Jan 13 14:20:22 2021 +1300

Bug 1911358: Editing Dashboard produces a console error if inbox messages present

- ajusted the way that jquery triggers pageupdated event

Change-Id: Iecb789ad73f76e3b2a9befdd0b6387f9ebd26efb
Signed-off-by: Lisa Seeto <email address hidden>
(cherry picked from commit 7512d7faef859f6f8d45aa5d0ac1389d5e6eb06d)

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

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

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

Patch for "19.10_STABLE" branch: https://reviews.mahara.org/11522

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

Reviewed: https://reviews.mahara.org/11522
Committed: https://git.mahara.org/mahara/mahara/commit/29725fe1eaa69dbb9f506dff36d946d994824bd8
Submitter: Robert Lyon (<email address hidden>)
Branch: 19.10_STABLE

commit 29725fe1eaa69dbb9f506dff36d946d994824bd8
Author: Lisa Seeto <email address hidden>
Date: Wed Jan 13 14:20:22 2021 +1300

Bug 1911358: Editing Dashboard produces a console error if inbox messages present

- ajusted the way that jquery triggers pageupdated event

Change-Id: Iecb789ad73f76e3b2a9befdd0b6387f9ebd26efb
Signed-off-by: Lisa Seeto <email address hidden>
(cherry picked from commit 7512d7faef859f6f8d45aa5d0ac1389d5e6eb06d)
(cherry picked from commit 566bf2f05f4d83eedf8003bc863b7105e435cff3)

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

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

commit 52c8ceed73f3ff3a36c4d635dc990d7eaf290650
Author: Lisa Seeto <email address hidden>
Date: Wed Jan 13 14:20:22 2021 +1300

Bug 1911358: Editing Dashboard produces a console error if inbox messages present

- ajusted the way that jquery triggers pageupdated event

Change-Id: Iecb789ad73f76e3b2a9befdd0b6387f9ebd26efb
Signed-off-by: Lisa Seeto <email address hidden>
(cherry picked from commit 7512d7faef859f6f8d45aa5d0ac1389d5e6eb06d)
(cherry picked from commit 566bf2f05f4d83eedf8003bc863b7105e435cff3)

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