[open-ils-commits] [GIT] Evergreen ILS branch rel_3_1 updated. dabc5a7c31c825767fea1e4302a5de833c6cbb8b

Evergreen Git git at git.evergreen-ils.org
Thu May 24 15:41:45 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, rel_3_1 has been updated
       via  dabc5a7c31c825767fea1e4302a5de833c6cbb8b (commit)
      from  899dc67bf2288a23fdb447ae86aab38036ebec95 (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 dabc5a7c31c825767fea1e4302a5de833c6cbb8b
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