Class 'Institution' not found when viewing another user's profile page

Bug #1885231 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Unassigned
19.04
Fix Released
High
Unassigned
19.10
Fix Released
High
Unassigned
20.04
Fix Released
High
Unassigned
20.10
Fix Released
High
Unassigned

Bug Description

When we have the following:

0) Start with a 19.04 site
1) A site / institution with SE framework enabled
2) User A creates a collection but does NOT share it
3) User A adds a 'navigation' block to their profile page and chooses the collection
4) User B logs in and searches up User A goes to the profile page of User A
- gets error

The problem here is the navigation block wants to go to function get_framework_institution() to work out some info and it fails if institution class has not been included

So we need to make sure institution class is included at the start of that function

Robert Lyon (robertl-9)
Changed in mahara:
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/11045

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

The patch will stop the error from being thrown - but if the collection is not currently shared with an access rule that allows the view to see the pages then the links will return 'access denied' as per normal.

Robert Lyon (robertl-9)
description: updated
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/11045
Committed: https://git.mahara.org/mahara/mahara/commit/2cd4d0b74feebc52462be479744cade710384e0f
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: master

commit 2cd4d0b74feebc52462be479744cade710384e0f
Author: Robert Lyon <email address hidden>
Date: Fri Jun 26 12:15:34 2020 +1200

Bug 1885231: Insure institution class is presesnt

When calling get_framework_institution()

Change-Id: I3d4a2f33dd06c3cd15f000fd102f25fbed063dfe
Signed-off-by: Robert Lyon <email address hidden>

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

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

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

Reviewed: https://reviews.mahara.org/11049
Committed: https://git.mahara.org/mahara/mahara/commit/b878094afae0a9182214a7975481ccc378bbafe4
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: 19.10_STABLE

commit b878094afae0a9182214a7975481ccc378bbafe4
Author: Robert Lyon <email address hidden>
Date: Fri Jun 26 12:15:34 2020 +1200

Bug 1885231: Insure institution class is presesnt

When calling get_framework_institution()

Change-Id: I3d4a2f33dd06c3cd15f000fd102f25fbed063dfe
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit 2cd4d0b74feebc52462be479744cade710384e0f)

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

Patch for "19.04_STABLE" branch: https://reviews.mahara.org/11050

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

Reviewed: https://reviews.mahara.org/11050
Committed: https://git.mahara.org/mahara/mahara/commit/571e06fe8921f991b3d03b5b280397d92851ce60
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: 19.04_STABLE

commit 571e06fe8921f991b3d03b5b280397d92851ce60
Author: Robert Lyon <email address hidden>
Date: Fri Jun 26 12:15:34 2020 +1200

Bug 1885231: Insure institution class is presesnt

When calling get_framework_institution()

Change-Id: I3d4a2f33dd06c3cd15f000fd102f25fbed063dfe
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit 2cd4d0b74feebc52462be479744cade710384e0f)
(cherry picked from commit b878094afae0a9182214a7975481ccc378bbafe4)

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/11051

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

Reviewed: https://reviews.mahara.org/11051
Committed: https://git.mahara.org/mahara/mahara/commit/c7ca4ba5cfd3fc43899368173ac699b0a1127c93
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: 20.04_STABLE

commit c7ca4ba5cfd3fc43899368173ac699b0a1127c93
Author: Robert Lyon <email address hidden>
Date: Fri Jun 26 12:15:34 2020 +1200

Bug 1885231: Insure institution class is presesnt

When calling get_framework_institution()

Change-Id: I3d4a2f33dd06c3cd15f000fd102f25fbed063dfe
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit 2cd4d0b74feebc52462be479744cade710384e0f)

Robert Lyon (robertl-9)
Changed in mahara:
milestone: 20.10.0 → none
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.