LP#1750894 Hatch set local storage item thinko
authorBill Erickson <berickxx@gmail.com>
Fri, 27 Jul 2018 21:52:24 +0000 (17:52 -0400)
committerKathy Lussier <klussier@masslnc.org>
Fri, 3 Aug 2018 17:21:00 +0000 (13:21 -0400)
Ensure hatch.setItem() returns a promise for both server- and browser-
stored values.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>

Open-ILS/web/js/ui/default/staff/services/hatch.js

index 5642a93..55f13a2 100644 (file)
@@ -373,7 +373,7 @@ angular.module('egCoreMod')
         }
 
         var deferred = $q.defer();
-        service.setBrowserItem(key, value).then(
+        return service.setBrowserItem(key, value).then(
             function(val) {deferred.resolve(val);},
 
             function() { // Hatch error