[open-ils-commits] [GIT] Evergreen ILS branch master updated. 124f0ff99a3dd79e049fb5c6c243dfb4a98d5a05

Evergreen Git git at git.evergreen-ils.org
Wed Nov 29 12:01:01 EST 2017


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  124f0ff99a3dd79e049fb5c6c243dfb4a98d5a05 (commit)
      from  97bd8265fec556182c15eecc7e5da4b7e013ef15 (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 124f0ff99a3dd79e049fb5c6c243dfb4a98d5a05
Author: Chris Sharp <csharp at georgialibraries.org>
Date:   Tue Nov 28 13:42:26 2017 -0500

    LP#1734963: Teach copy template converter about older templates.
    
    The XUL-to-web-client copy template converter created to fix
    bug 1691269 needs a little help when the value stored is a
    number rather than a string.
    
    Thanks to Jeff Godin for troubleshooting help and Mike
    Rylander for the suggested solution.
    
    Signed-off-by: Chris Sharp <csharp at georgialibraries.org>
    Signed-off-by: Jeff Godin <jgodin at tadl.org>

diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js
index a87ea1e..7fe8ddd 100644
--- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js
+++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js
@@ -334,7 +334,7 @@ function(egCore , $q) {
                             stat_cats[field_name] = parseInt(curr_field["value"]);
                         } else {
                             tmp_val = curr_field['value']; // so... some of the number fields are actually strings. Groovy.
-                            if ( tmp_val.match(/^[-0-9.]+$/) && !(field_name.match(/(?:loan_duration|fine_level)/))) {
+                            if ( tmp_val.toString().match(/^[-0-9.]+$/) && !(field_name.match(/(?:loan_duration|fine_level)/))) {
                                 tmp_val = parseFloat(tmp_val);
                             }
 

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

Summary of changes:
 .../web/js/ui/default/staff/cat/volcopy/app.js     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list