[open-ils-commits] r19368 - branches/rel_1_6_2/Open-ILS/web/js/ui/default/actor/user (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Feb 2 14:59:03 EST 2011
Author: phasefx
Date: 2011-02-02 14:58:59 -0500 (Wed, 02 Feb 2011)
New Revision: 19368
Modified:
branches/rel_1_6_2/Open-ILS/web/js/ui/default/actor/user/register.js
Log:
backport r19364 from trunk for stat cat field value removal in patron editor
Modified: branches/rel_1_6_2/Open-ILS/web/js/ui/default/actor/user/register.js
===================================================================
--- branches/rel_1_6_2/Open-ILS/web/js/ui/default/actor/user/register.js 2011-02-02 19:58:36 UTC (rev 19367)
+++ branches/rel_1_6_2/Open-ILS/web/js/ui/default/actor/user/register.js 2011-02-02 19:58:59 UTC (rev 19368)
@@ -589,8 +589,6 @@
break;
case 'statcat':
- if(val == null) break;
-
var map = patron.stat_cat_entries().filter(
function(m){
return (m.stat_cat() == w._statcat) })[0];
@@ -598,8 +596,15 @@
if(map) {
if(map.stat_cat_entry() == val)
break;
- map.ischanged(1);
+ if(val == null) {
+ val = '';
+ map.isdeleted(1);
+ } else {
+ map.ischanged(1);
+ }
} else {
+ if(val == null)
+ break;
map = new fieldmapper.actscecm();
map.isnew(1);
}
More information about the open-ils-commits
mailing list