stringifying ident val so .length works
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 1 Sep 2006 04:14:12 +0000 (04:14 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 1 Sep 2006 04:14:12 +0000 (04:14 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5821 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/myopac.js

index d92151a..e3db6eb 100644 (file)
@@ -699,7 +699,7 @@ function _myOPACSummaryShowUer(r) {
        fleshedUser = user;
        if(!user) return;
 
        fleshedUser = user;
        if(!user) return;
 
-       var iv1 = user.ident_value();
+       var iv1 = user.ident_value()+'';
        if (iv1.length > 4) iv1 = iv1.replace(new RegExp(iv1.substring(0,iv1.length - 4)), '***********');
 
        appendClear($('myopac_summary_first'),text(user.first_given_name()));
        if (iv1.length > 4) iv1 = iv1.replace(new RegExp(iv1.substring(0,iv1.length - 4)), '***********');
 
        appendClear($('myopac_summary_first'),text(user.first_given_name()));