make list.au an array
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 15 Dec 2005 04:39:31 +0000 (04:39 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 15 Dec 2005 04:39:31 +0000 (04:39 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2389 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/evergreen/OpenILS/data.js

index ce5b400..f3dffc5 100644 (file)
@@ -160,6 +160,7 @@ OpenILS.data.prototype = {
                                        obj.list.au = new au();
                                        obj.list.au.home_lib( '1' );
                                }
+                               obj.list.au = [ obj.list.au ];
                        }
                );
 
@@ -198,7 +199,7 @@ OpenILS.data.prototype = {
                                        [ 
                                                api.fm_actsc_retrieve_via_aou.app,
                                                api.fm_actsc_retrieve_via_aou.method,
-                                               [ obj.session, obj.list.au.home_ou() ],
+                                               [ obj.session, obj.list.au[0].home_ou() ],
                                                true
                                        ]
                                )();