Skip to content

Commit 9ee833b

Browse files
committed
Use LABKEY.ext4.Util.getLookupStoreId instead of directly using string ID
1 parent 3bbb9ee commit 9ee833b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LabPurchasing/resources/web/labpurchasing/panel/VendorPanel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ Ext4.define('LabPurchasing.panel.VendorPanel', {
6868
return;
6969
}
7070

71-
function onSuccess(store){
71+
function onSuccess(){
7272
this.mun(this.store, onError);
7373
btn.setDisabled(false);
7474

75-
var store = Ext4.StoreManager.get('labpurchasing||vendors||rowId||vendorName');
75+
var store = Ext4.StoreManager.get(LABKEY.ext4.Util.getLookupStoreId({lookup: {schemaName: 'labpurchasing', queryName: 'vendors', keyColumn: 'rowId', displayColumn: 'vendorName'}}));
7676
if (store) {
7777
store.load();
7878
}

0 commit comments

Comments
 (0)