[open-ils-commits] [GIT] Evergreen ILS branch rel_3_0 updated. 2b943b5910694bacdd6f6eba02c3329c24860e91

Evergreen Git git at git.evergreen-ils.org
Wed Nov 29 12:01:09 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, rel_3_0 has been updated
       via  2b943b5910694bacdd6f6eba02c3329c24860e91 (commit)
      from  baf8de07be4366d31ca6a246643ed52d4fd81ec2 (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 2b943b5910694bacdd6f6eba02c3329c24860e91
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 0732ae1..36debae 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