[open-ils-commits] r11676 - trunk/Open-ILS/web/js/ui/default/conify/global/config
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Dec 23 16:48:42 EST 2008
Author: erickson
Date: 2008-12-23 16:48:38 -0500 (Tue, 23 Dec 2008)
New Revision: 11676
Modified:
trunk/Open-ILS/web/js/ui/default/conify/global/config/standing_penalty.js
Log:
fixed backwards logic to protect system penalties from deletion
Modified: trunk/Open-ILS/web/js/ui/default/conify/global/config/standing_penalty.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/conify/global/config/standing_penalty.js 2008-12-23 21:41:37 UTC (rev 11675)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/config/standing_penalty.js 2008-12-23 21:48:38 UTC (rev 11676)
@@ -113,10 +113,12 @@
var item = list[idx];
var id = spGrid.store.getValue(item, 'id');
- if(id > 100){
+
+ if(id < 100) { // don't delete system penalties
_deleteFromGrid(list, ++idx);
return;
}
+
fieldmapper.standardRequest(
['open-ils.permacrud', 'open-ils.permacrud.delete.csp'],
{ async: true,
More information about the open-ils-commits
mailing list