[open-ils-commits] [GIT] Evergreen ILS branch master updated. 646d132b635909ea0eb0ff816de64115fce87458

Evergreen Git git at git.evergreen-ils.org
Thu Aug 21 16:09:47 EDT 2014


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  646d132b635909ea0eb0ff816de64115fce87458 (commit)
      from  b8318714885fcb0ccfe1eae86e80191c1243295d (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 646d132b635909ea0eb0ff816de64115fce87458
Author: Galen Charlton <gmc at esilibrary.com>
Date:   Thu Aug 21 12:33:53 2014 -0700

    LP#1359934: prevent error opening patron search form
    
    As a result of the patch for OpenSRF bug 1316245, JSON2js
    in the OpenSRF library is now stricter -- in particular, passing
    an undefined value to it results in an exception being thrown.
    
    This patch runs with the increased strictness and fixes an
    issue where the patron search form was passing an undefined value
    to JSON2js.
    
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/xul/staff_client/server/patron/search_form.js b/Open-ILS/xul/staff_client/server/patron/search_form.js
index 5fadf55..e62efa0 100644
--- a/Open-ILS/xul/staff_client/server/patron/search_form.js
+++ b/Open-ILS/xul/staff_client/server/patron/search_form.js
@@ -19,7 +19,9 @@ patron.search_form.prototype = {
         // But we're going to let search_limit and search_sort be configurable now by those spawning this interface, and let's assume there are no corresponding widgets for now.  
         // I'm going to place them into the "obj" scope for this instance.
         obj.search_limit = params.query.search_limit;
-        obj.search_sort = JSON2js( params.query.search_sort ); // Let's assume this is encoded as JSON
+        obj.search_sort = (typeof params.query.search_sort === 'undefined') ?
+                            null :
+                            JSON2js( params.query.search_sort ); // Let's assume this is encoded as JSON
 
         JSAN.use('OpenILS.data'); this.OpenILS = {}; 
         obj.OpenILS.data = new OpenILS.data(); obj.OpenILS.data.init({'via':'stash'});

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

Summary of changes:
 .../xul/staff_client/server/patron/search_form.js  |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list