From a61fc24476f6c24bceea2a4b0b9cc900ac0fe735 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 27 Jul 2018 17:52:24 -0400 Subject: [PATCH] LP#1750894 Hatch set local storage item thinko Ensure hatch.setItem() returns a promise for both server- and browser- stored values. Signed-off-by: Bill Erickson Signed-off-by: Kathy Lussier --- Open-ILS/web/js/ui/default/staff/services/hatch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/services/hatch.js b/Open-ILS/web/js/ui/default/staff/services/hatch.js index 5642a93904..55f13a27c8 100644 --- a/Open-ILS/web/js/ui/default/staff/services/hatch.js +++ b/Open-ILS/web/js/ui/default/staff/services/hatch.js @@ -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 -- 2.11.0