From 2deb826266aec8f2e92ebf16a4b02912a32ee34d Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 5 Jun 2023 22:54:37 +0300 Subject: [PATCH] fix array search custom options not stored --- client/src/views/fields/array.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client/src/views/fields/array.js b/client/src/views/fields/array.js index ba4e315475..80e643c8f6 100644 --- a/client/src/views/fields/array.js +++ b/client/src/views/fields/array.js @@ -454,6 +454,15 @@ function (Dep, RegExpPattern, /** module:ui/multi-select*/MultiSelect) { }); }); + valueList + .filter(item => !(this.params.options || []).includes(item)) + .forEach(item => { + items.push({ + value: item, + text: item, + }); + }); + /** @type {module:ui/multi-select~Options} */ let multiSelectOptions = { items: items,