[open-ils-commits] [GIT] Evergreen ILS branch master updated. 23719d94411c4d59357ecd37bbc9a8c79a7e5c5c

Evergreen Git git at git.evergreen-ils.org
Thu May 24 15:41:40 EDT 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  23719d94411c4d59357ecd37bbc9a8c79a7e5c5c (commit)
      from  510284df87477ca886c2835719b250928e16641f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 23719d94411c4d59357ecd37bbc9a8c79a7e5c5c
Author: Mike Rylander <mrylander at gmail.com>
Date:   Fri May 4 09:58:53 2018 -0400

    LP#1755220: Return value checking in offline session fetch
    
    We need to make sure that we receive the correct shape of data (array) rather
    than that we simply got anything when fetching sessions.  In the case of an
    expired session token, we'll receive an ILS Event object informing us of the
    expiration where we'd normally see a list of sessions.
    
    Signed-off-by: Mike Rylander <mrylander at gmail.com>
    Signed-off-by: Dawn Dale <ddale at georgialibraries.org>
    Signed-off-by: Jason Stephenson <jason at sigio.com>

diff --git a/Open-ILS/web/js/ui/default/staff/offline.js b/Open-ILS/web/js/ui/default/staff/offline.js
index 1441c38..947aa42 100644
--- a/Open-ILS/web/js/ui/default/staff/offline.js
+++ b/Open-ILS/web/js/ui/default/staff/offline.js
@@ -126,10 +126,11 @@ function($routeProvider , $locationProvider , $compileProvider) {
             });
         }
 
+        $scope.sessions = [];
         $scope.refreshSessions = function () {
 
             return $http.get(formURL({action:'status',status_type:'sessions'})).then(function(res) {
-                if (res.data) {
+                if (angular.isArray(res.data)) {
                     $scope.sessions = res.data;
                     return $q.when();
                 }

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/web/js/ui/default/staff/offline.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list