Custom org tree with no org units causes TPAC server error
Bug #1254146 reported by
Bill Erickson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned | ||
2.3 |
Fix Released
|
Medium
|
Unassigned | ||
2.4 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Evergreen 2.3+
Having a row in actor.org_
Apache reports:
egweb: template error: undef error - Can't call method "org_unit" on an undefined value at /usr/local/
The code assumes the existence of a tree implies the existence of at least one node. However, a tree can be node-less in the wild, most notably when then tree is being edited.
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Pushed fix to user/berick/ lp1254146- custom- tree-no- entries
To test:
insert into actor.org_ unit_custom_ tree (active, purpose) values (true, 'opac');
Loading the TPAC should produce a 500 error. After the patch is applied, the 500 error should no longer occur.