]> git.evergreen-ils.org Git - working/Evergreen.git/commit - Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html
LP#1904244: fm-editor: add a linkedSearchConditions field option
authorGalen Charlton <gmc@equinoxOLI.org>
Tue, 20 Apr 2021 21:57:08 +0000 (17:57 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 12 Aug 2021 19:29:26 +0000 (15:29 -0400)
commit2b02402b2f5bb0deb0394d75df0c99f2ff22fb24
treeb266331ba85a8898332ce27f3f902512fe2dd9e7
parenta4cd115a834fbb5aeab2d10f8f9bdc80cef1c88a
LP#1904244: fm-editor: add a linkedSearchConditions field option

This option allows the caller to specify conditions to add
when retrieving values for a linked field, e.g., to specify
that only active values should be fetched.

Example usage:

[fieldOptions]="{fund:{linkedSearchConditions:{'active':'t'}}}"

If the underlying record has a value set for the linked field, that
value will be included when preloadLinkedValues and the value
doesn't otherwise meet the search conditions.

This patch also sorts the values if preloadLinkedValues is used.

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>
Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.ts
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html