LP#1981714: fix Dojo AutoFieldWidget initialization bug
authorGalen Charlton <gmc@equinoxOLI.org>
Thu, 14 Jul 2022 16:12:59 +0000 (16:12 +0000)
committerJane Sandberg <js7389@princeton.edu>
Sun, 2 Oct 2022 15:02:50 +0000 (08:02 -0700)
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>
Signed-off-by: Ruth Frasur <rfrasur@library.in.gov>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
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;