[open-ils-commits] r7980 - in trunk:
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:18:52 EDT 2007
Author: erickson
Date: 2007-11-03 20:03:40 -0400 (Sat, 03 Nov 2007)
New Revision: 7980
Modified:
trunk/Evergreen/src/javascript/backend/circ/circ_permit_copy.js
trunk/Open-ILS/src/javascript/backend/circ/circ_permit_copy.js
Log:
adding copy location checks to default item permit scripts
Modified: trunk/Evergreen/src/javascript/backend/circ/circ_permit_copy.js
===================================================================
--- trunk/Evergreen/src/javascript/backend/circ/circ_permit_copy.js 2007-11-04 00:00:52 UTC (rev 7979)
+++ trunk/Evergreen/src/javascript/backend/circ/circ_permit_copy.js 2007-11-04 00:03:40 UTC (rev 7980)
@@ -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: trunk/Open-ILS/src/javascript/backend/circ/circ_permit_copy.js
===================================================================
--- trunk/Open-ILS/src/javascript/backend/circ/circ_permit_copy.js 2007-11-04 00:00:52 UTC (rev 7979)
+++ trunk/Open-ILS/src/javascript/backend/circ/circ_permit_copy.js 2007-11-04 00:03:40 UTC (rev 7980)
@@ -6,7 +6,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