Tags under institutions cause error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Robert Lyon |
Bug Description
We now have a system where we can use special 'Institution tags' but we also allow institution admins to tag things in the normal was as well. The following case causes the error:
[WAR] 9e (lib/form/
Call stack (most recent first):
log_
error(8, "Trying to get property of non-object", "/home/
display_
ArtefactTyp
Steps to reproduce:
1) Have a site with an institution (Institution A) that contains 2 institution admins
2) Institution admin A logs in and uploads a file to the Admin -> Institution -> Files section
3) They then edit the file metadata and add a tag 'Cats'
4) They log out
5) Institution admin B logs in and goes to the Admin -> Institution -> Files section
They see the error
6) They then edit the file metadata and instead of seeing 'Cats' they see 'null'
Changed in mahara: | |
importance: | Undecided → High |
milestone: | none → 19.04.0 |
status: | New → Confirmed |
Changed in mahara: | |
assignee: | nobody → Robert Lyon (robertl-9) |
status: | Confirmed → In Progress |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/9894