[open-ils-commits] [GIT] Evergreen ILS branch master updated. c99f158d66dd7349324b1d327cbf8d1877a3ae6e
Evergreen Git
git at git.evergreen-ils.org
Tue Mar 20 15:57:00 EDT 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via c99f158d66dd7349324b1d327cbf8d1877a3ae6e (commit)
from 63174837755349499f3821e481215d6f7eda897e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c99f158d66dd7349324b1d327cbf8d1877a3ae6e
Author: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Date: Fri Feb 3 14:45:28 2012 -0500
Prevent AutoGrid death using a certain helper with null OU fields
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
index 0faa3ee..9210b36 100644
--- a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
+++ b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
@@ -671,9 +671,12 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) {
openils.widget.AutoGrid.orgUnitGetter = function(rowIndex, item) {
if (!item) return "";
- return fieldmapper.aou.findOrgUnit(
- this.grid.store.getValue(item, this.field)
- ).shortname();
+
+ var aou_id = this.grid.store.getValue(item, this.field);
+ if (aou_id)
+ return fieldmapper.aou.findOrgUnit(aou_id).shortname();
+ else
+ return "";
};
}
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/web/js/dojo/openils/widget/AutoGrid.js | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list