[open-ils-commits] [GIT] Evergreen ILS branch master updated. 55a82b570ee8562f3d9eaedad42f22d15b1b8205
Evergreen Git
git at git.evergreen-ils.org
Tue Jun 26 13:36:30 EDT 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via 55a82b570ee8562f3d9eaedad42f22d15b1b8205 (commit)
from 13d4fbac3cb5905da1baad673fe8418b6245a053 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 55a82b570ee8562f3d9eaedad42f22d15b1b8205
Author: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Date: Wed Jun 20 11:13:11 2012 -0400
Acq: fix widget choice for user-linked fields in Acquisitions Search
The Acquisitions Search interface (which also sits underneath the
Purchase Orders inteface, My Selection Lists, and one or two others)
stopped presenting the correct widget for search terms linked to
actor.usr. This was brought on when PCRUD control was added to
actor.usr, so that means the bug affects only master, not rel_2_2 or
earlier.
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Signed-off-by: Bill Erickson <berick at esilibrary.com>
diff --git a/Open-ILS/web/js/ui/default/acq/search/unified.js b/Open-ILS/web/js/ui/default/acq/search/unified.js
index 02e1d68..68fb3bb 100644
--- a/Open-ILS/web/js/ui/default/acq/search/unified.js
+++ b/Open-ILS/web/js/ui/default/acq/search/unified.js
@@ -128,6 +128,8 @@ function TermSelectorFactory(terms) {
) {
var term = this.getTerm();
var widgetKey = this.uniq;
+ var target = termManager.getLinkTarget(term);
+
if (matchHow.getValue() == "__in") {
new openils.widget.XULTermLoader({
"parentNode": parentNode
@@ -147,7 +149,9 @@ function TermSelectorFactory(terms) {
}
);
} else if (term.hint == "acqlia" ||
- (term.hint == "jub" && term.field == "eg_bib_id")) {
+ (term.hint == "jub" && term.field == "eg_bib_id") ||
+ term.datatype == "org_unit" ||
+ (term.datatype == "link" && target == "au")) {
/* The test for jub.eg_bib_id is a special case to prevent
* AutoFieldWidget from trying to render a ridiculous dropdown
* of every bib record ID in the system. */
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/web/js/ui/default/acq/search/unified.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list