fixed some bugs in creating new picklists by name
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 13 Aug 2009 21:09:25 +0000 (21:09 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 13 Aug 2009 21:09:25 +0000 (21:09 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13834 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/acq/picklist/view_list.js

index 8e7ba88..740f233 100644 (file)
@@ -53,11 +53,13 @@ function createPL(fields) {
                 ['open-ils.acq', 'open-ils.acq.picklist.retrieve'],
                 {   async: true,
                     params: [openils.User.authtoken, plId,
-                        {flesh_lineitem_count:1, flesh_username:1}],
+                        {flesh_lineitem_count:1, flesh_owner:1}],
 
                     oncomplete: function(r) {
-                        if(pl = openils.Util.readResponse(r)) 
+                        if(pl = openils.Util.readResponse(r)) {
+                           plCache[pl.id()] = pl;
                            plListGrid.store.newItem(acqpl.toStoreData([pl]).items[0]);
+                        }
                     }
                 }
             );