LP#1981714: fix Dojo AutoFieldWidget initialization bug
authorGalen Charlton <gmc@equinoxOLI.org>
Thu, 14 Jul 2022 16:12:59 +0000 (16:12 +0000)
committerGalen Charlton <gmc@equinoxOLI.org>
Mon, 29 Aug 2022 22:43:58 +0000 (22:43 +0000)
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 <gmc@equinoxOLI.org>
Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js

index 149d53d..f0c3093 100644 (file)
@@ -669,6 +669,7 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) {
             } else {
                 this.widget.tree = fieldmapper.aou.globalOrgTree;
                 this.widget.startup();
+                this._widgetLoaded();
             }
 
             return true;