diff --git a/ehr/resources/web/ehr/DataEntryUtils.js b/ehr/resources/web/ehr/DataEntryUtils.js index e218991d3..3c3fa72cb 100644 --- a/ehr/resources/web/ehr/DataEntryUtils.js +++ b/ehr/resources/web/ehr/DataEntryUtils.js @@ -801,7 +801,17 @@ EHR.DataEntryUtils = new function(){ schemaName: 'ehr', queryName: 'observation_types', columns: 'value,editorconfig', - autoLoad: true + autoLoad: true, + listeners: { + // unlike EHR.data.DataEntryClientStore, LABKEY.ext4.data.Store has no hasLoaded(); + // consumers need to distinguish a pending initial load from one that returned no rows + load: { + single: true, + fn: function(store){ + store.hasLoadedOnce = true; + } + } + } }); return EHR._observationTypesStore; diff --git a/ehr/resources/web/ehr/ehr_ext4_dataEntry.lib.xml b/ehr/resources/web/ehr/ehr_ext4_dataEntry.lib.xml index 60557b71e..edaa925ac 100644 --- a/ehr/resources/web/ehr/ehr_ext4_dataEntry.lib.xml +++ b/ehr/resources/web/ehr/ehr_ext4_dataEntry.lib.xml @@ -21,6 +21,7 @@