name, not value
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 18 Jul 2005 18:52:57 +0000 (18:52 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 18 Jul 2005 18:52:57 +0000 (18:52 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1269 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/patron/patron_utils.js

index bbc2bce..ffa4cb6 100755 (executable)
@@ -6,6 +6,7 @@ function fake_patron() {
        p.checkouts( [] ); 
        p.hold_requests( [] ); 
        p.credit_forward_balance('0.00');
+       p.bills = [];
        return p;
 }
 
@@ -211,10 +212,10 @@ function patron_get_profile_as_text( au ) {
                au.profile() && 
                mw.G.ap_hash &&
                mw.G.ap_hash[ au.profile() ] && 
-               mw.G.ap_hash[ au.profile() ].value &&
-               mw.G.ap_hash[ au.profile() ].value()
+               mw.G.ap_hash[ au.profile() ].name &&
+               mw.G.ap_hash[ au.profile() ].name()
        ) {
-               return mw.G.ap_hash[ au.profile() ].value();
+               return mw.G.ap_hash[ au.profile() ].name();
        } else {
                return null;
        }