[open-ils-commits] r7979 - in branches/rel_1_2:
Evergreen/src/javascript/backend/circ
Open-ILS/src/javascript/backend/circ
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Nov 3 20:16:04 EDT 2007
Author: erickson
Date: 2007-11-03 20:00:52 -0400 (Sat, 03 Nov 2007)
New Revision: 7979
Modified:
branches/rel_1_2/Evergreen/src/javascript/backend/circ/circ_permit_copy.js
branches/rel_1_2/Open-ILS/src/javascript/backend/circ/circ_permit_copy.js
Log:
adding copy location checks to default item permit scripts
Modified: branches/rel_1_2/Evergreen/src/javascript/backend/circ/circ_permit_copy.js
===================================================================
--- branches/rel_1_2/Evergreen/src/javascript/backend/circ/circ_permit_copy.js 2007-11-03 22:41:30 UTC (rev 7978)
+++ branches/rel_1_2/Evergreen/src/javascript/backend/circ/circ_permit_copy.js 2007-11-04 00:00:52 UTC (rev 7979)
@@ -5,7 +5,7 @@
log_vars('circ_permit_copy');
-if( ! isTrue(copy.circulate) )
+if( ! isTrue(copy.circulate) || !isTrue(copy.location.circulate) )
result.events.push('COPY_CIRC_NOT_ALLOWED');
Modified: branches/rel_1_2/Open-ILS/src/javascript/backend/circ/circ_permit_copy.js
===================================================================
--- branches/rel_1_2/Open-ILS/src/javascript/backend/circ/circ_permit_copy.js 2007-11-03 22:41:30 UTC (rev 7978)
+++ branches/rel_1_2/Open-ILS/src/javascript/backend/circ/circ_permit_copy.js 2007-11-04 00:00:52 UTC (rev 7979)
@@ -5,7 +5,7 @@
log_vars('circ_permit_copy');
-if( ! isTrue(copy.circulate) )
+if( ! isTrue(copy.circulate) || !isTrue(copy.location.circulate) )
result.events.push('COPY_CIRC_NOT_ALLOWED');
More information about the open-ils-commits
mailing list