From: Galen Charlton Date: Thu, 14 Jul 2022 16:12:59 +0000 (+0000) Subject: LP#1981714: fix Dojo AutoFieldWidget initialization bug X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d5a6832b4d734c48ed580636bff06839b22c8f88;p=working%2FEvergreen.git LP#1981714: fix Dojo AutoFieldWidget initialization bug This patch fixes a bug where AutoFieldWidget wouldn't invoke the callback when building an org unit selector. Fixing this allows library settings (including acq.default_owning_lib_for_auto_lids added in the previous patch) whose datatype is link and whose fm_class is aou to work in the Dojo Library Settings editor. Signed-off-by: Galen Charlton Signed-off-by: Ruth Frasur Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg --- diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js index 149d53d150..f0c309391c 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js @@ -669,6 +669,7 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) { } else { this.widget.tree = fieldmapper.aou.globalOrgTree; this.widget.startup(); + this._widgetLoaded(); } return true;