From 98ae5aac1c2340128cacc1efca2a40077ffe2000 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 3 Apr 2023 14:55:04 -0600 Subject: [PATCH] Et2Select: It was impossible to have "," in an option value, as it would get split by set_value() see a9d2a3972cde0389e3c52add07a638f08cc0942e --- api/js/etemplate/Et2Select/Et2Select.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Select/Et2Select.ts b/api/js/etemplate/Et2Select/Et2Select.ts index dd2b242e9a..981ddd4504 100644 --- a/api/js/etemplate/Et2Select/Et2Select.ts +++ b/api/js/etemplate/Et2Select/Et2Select.ts @@ -464,7 +464,7 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect) set_value(val : string | string[] | number | number[]) { - if(typeof val === 'string' && val.indexOf(',') !== -1 && (this.multiple || val.length >= 3)) + if(typeof val === 'string' && val.indexOf(',') !== -1 && this.multiple) { val = val.split(','); }