[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. b13a713e9216df11da43688f5a382052e3e6457b
Evergreen Git
git at git.evergreen-ils.org
Fri Jan 20 16:48:36 EST 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, rel_2_1 has been updated
via b13a713e9216df11da43688f5a382052e3e6457b (commit)
from 18f40ebb25221e77b610b3349a4c610e6c406807 (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 b13a713e9216df11da43688f5a382052e3e6457b
Author: Jason Etheridge <jason at esilibrary.com>
Date: Mon Jan 9 15:18:15 2012 -0500
Fix self-fetching callnumber columns
The callnumber (and related) columns from circ.util.columns() is meant to
retrieve call number objects if given call number id's instead of objects,
but there was a bug preventing that.
This fixes LP#906523, no call number information in billing interface
Signed-off-by: Jason Etheridge <jason at esilibrary.com>
Signed-off-by: Bill Erickson <berick at esilibrary.com>
diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js
index d2fe5dc..d44cf22 100644
--- a/Open-ILS/xul/staff_client/server/circ/util.js
+++ b/Open-ILS/xul/staff_client/server/circ/util.js
@@ -580,7 +580,7 @@ circ.util.columns = function(modify,params) {
acn_id = my.acn;
}
} else if (my.acp) {
- if (typeof my.acp.call_number() == 'object') {
+ if (typeof my.acp.call_number() == 'object' && my.acp.call_number() != null) {
acn_id = my.acp.call_number().id();
} else {
acn_id = my.acp.call_number();
@@ -594,6 +594,9 @@ circ.util.columns = function(modify,params) {
return document.getElementById('circStrings').getString('staff.circ.utils.retrieving');
} else {
if (!my.acn) {
+ if (typeof scratch_data == 'undefined' || scratch_data == null) {
+ scratch_data = {};
+ }
if (typeof scratch_data['acn_map'] == 'undefined') {
scratch_data['acn_map'] = {};
}
@@ -646,7 +649,7 @@ circ.util.columns = function(modify,params) {
acn_id = my.acn;
}
} else if (my.acp) {
- if (typeof my.acp.call_number() == 'object') {
+ if (typeof my.acp.call_number() == 'object' && my.acp.call_number() != null) {
acn_id = my.acp.call_number().id();
} else {
acn_id = my.acp.call_number();
@@ -660,6 +663,9 @@ circ.util.columns = function(modify,params) {
return document.getElementById('circStrings').getString('staff.circ.utils.retrieving');
} else {
if (!my.acn) {
+ if (typeof scratch_data == 'undefined' || scratch_data == null) {
+ scratch_data = {};
+ }
if (typeof scratch_data['acn_map'] == 'undefined') {
scratch_data['acn_map'] = {};
}
@@ -700,7 +706,7 @@ circ.util.columns = function(modify,params) {
acn_id = my.acn;
}
} else if (my.acp) {
- if (typeof my.acp.call_number() == 'object') {
+ if (typeof my.acp.call_number() == 'object' && my.acp.call_number() != null) {
acn_id = my.acp.call_number().id();
} else {
acn_id = my.acp.call_number();
@@ -714,6 +720,9 @@ circ.util.columns = function(modify,params) {
return document.getElementById('circStrings').getString('staff.circ.utils.retrieving');
} else {
if (!my.acn) {
+ if (typeof scratch_data == 'undefined' || scratch_data == null) {
+ scratch_data = {};
+ }
if (typeof scratch_data['acn_map'] == 'undefined') {
scratch_data['acn_map'] = {};
}
@@ -754,7 +763,7 @@ circ.util.columns = function(modify,params) {
acn_id = my.acn;
}
} else if (my.acp) {
- if (typeof my.acp.call_number() == 'object') {
+ if (typeof my.acp.call_number() == 'object' && my.acp.call_number() != null) {
acn_id = my.acp.call_number().id();
} else {
acn_id = my.acp.call_number();
@@ -768,6 +777,9 @@ circ.util.columns = function(modify,params) {
return document.getElementById('circStrings').getString('staff.circ.utils.retrieving');
} else {
if (!my.acn) {
+ if (typeof scratch_data == 'undefined' || scratch_data == null) {
+ scratch_data = {};
+ }
if (typeof scratch_data['acn_map'] == 'undefined') {
scratch_data['acn_map'] = {};
}
@@ -2394,7 +2406,7 @@ circ.util.hold_columns = function(modify,params) {
acn_id = my.acn;
}
} else if (my.acp) {
- if (typeof my.acp.call_number() == 'object') {
+ if (typeof my.acp.call_number() == 'object' && my.acp.call_number() != null) {
acn_id = my.acp.call_number().id();
} else {
acn_id = my.acp.call_number();
@@ -2408,6 +2420,9 @@ circ.util.hold_columns = function(modify,params) {
return document.getElementById('circStrings').getString('staff.circ.utils.retrieving');
} else {
if (!my.acn) {
+ if (typeof scratch_data == 'undefined' || scratch_data == null) {
+ scratch_data = {};
+ }
if (typeof scratch_data['acn_map'] == 'undefined') {
scratch_data['acn_map'] = {};
}
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/xul/staff_client/server/circ/util.js | 25 ++++++++++++++++++++-----
1 files changed, 20 insertions(+), 5 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list