make egCore.pcrud.apply() work
authorGalen Charlton <gmc@esilibrary.com>
Thu, 3 Dec 2015 21:57:12 +0000 (16:57 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 27 Mar 2017 20:04:49 +0000 (16:04 -0400)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/web/js/ui/default/staff/services/pcrud.js

index 1f78b17..66fdba9 100644 (file)
@@ -267,12 +267,12 @@ angular.module('egCoreMod')
             var action = this.cud_action;
             var fm_obj = this.cud_list[this.cud_idx++];
 
-            if (action == 'auto') {
+            if (action == 'apply') {
                 if (fm_obj.ischanged()) action = 'update';
                 if (fm_obj.isnew())     action = 'create';
                 if (fm_obj.isdeleted()) action = 'delete';
 
-                if (action == 'auto') {
+                if (action == 'apply') {
                     // object does not need updating; move along
                     this._CUD_next_request();
                 }