From deb85c5556cf0fbc7112b0fcec2da86b610b12d1 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 2 Aug 2019 12:44:16 -0400 Subject: [PATCH] LP#1329920: (follow-up) set searchFormat as well AutoFieldWidget's searchFormat (among other things) controls the formatting of the selected value for a drop-down, so this patch sets it for funds as well. This patch also tidys up whitespace. Signed-off-by: Galen Charlton --- .../js/ui/default/conify/global/acq/distribution_formula.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/ui/default/conify/global/acq/distribution_formula.js b/Open-ILS/web/js/ui/default/conify/global/acq/distribution_formula.js index 2a44917790..1b5b9acf77 100644 --- a/Open-ILS/web/js/ui/default/conify/global/acq/distribution_formula.js +++ b/Open-ILS/web/js/ui/default/conify/global/acq/distribution_formula.js @@ -17,7 +17,6 @@ var _collection_code_kludge_active = false; var fundSearchFilter = {active : 't'}; var fundLabelFormat = ['${0} (${1})', 'code', 'year']; - function gridDataLoader() { fListGrid.resetStore(); fListGrid.showLoadProgressIndicator(); @@ -167,7 +166,8 @@ function addEntry(entry) { fmField : field, fmObject : entry, fmClass : 'acqdfe', - labelFormat: (field == 'fund') ? fundLabelFormat : null, + labelFormat: (field == 'fund') ? fundLabelFormat : null, + searchFormat: (field == 'fund') ? fundLabelFormat : null, searchFilter : (field == 'fund') ? fundSearchFilter : null, parentNode : byName(row, field), orgDefaultsToWs : true, -- 2.43.2