[open-ils-commits] r10204 -
branches/rel_1_2_2/Open-ILS/xul/staff_client/server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jul 31 00:31:32 EDT 2008
Author: phasefx
Date: 2008-07-31 00:31:25 -0400 (Thu, 31 Jul 2008)
New Revision: 10204
Modified:
branches/rel_1_2_2/Open-ILS/xul/staff_client/server/patron/holds.js
Log:
don't assume the ws_ou has a parent
Modified: branches/rel_1_2_2/Open-ILS/xul/staff_client/server/patron/holds.js
===================================================================
--- branches/rel_1_2_2/Open-ILS/xul/staff_client/server/patron/holds.js 2008-07-31 04:29:50 UTC (rev 10203)
+++ branches/rel_1_2_2/Open-ILS/xul/staff_client/server/patron/holds.js 2008-07-31 04:31:25 UTC (rev 10204)
@@ -975,7 +975,7 @@
util.functional.filter_list(
util.fm_utils.find_ou(
obj.data.tree.aou,
- obj.data.hash.aou[ obj.data.list.au[0].ws_ou() ].parent_ou()
+ obj.data.hash.aou[ obj.data.list.au[0].ws_ou() ].parent_ou() ? obj.data.hash.aou[ obj.data.list.au[0].ws_ou() ].parent_ou() : obj.data.list.au[0].ws_ou()
).children(),
function(o) {
return o.id() != obj.data.list.au[0].ws_ou();
More information about the open-ils-commits
mailing list