From 37b734f63c1ac66fe12a3ecc9c7e8cda2440dc64 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 24 Jan 2024 16:46:07 -0700 Subject: [PATCH] Et2Widget: Fix Number attributes were not properly parsed in transformAttributes() --- api/js/etemplate/Et2Widget/Et2Widget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Widget/Et2Widget.ts b/api/js/etemplate/Et2Widget/Et2Widget.ts index 701cb41347..f4af4e337b 100644 --- a/api/js/etemplate/Et2Widget/Et2Widget.ts +++ b/api/js/etemplate/Et2Widget/Et2Widget.ts @@ -1632,7 +1632,7 @@ function transformAttributes(widget, mgr : et2_arrayMgr, attributes) attrValue = widget.egw().lang(attrValue); } } - else if(attrValue && [Object, Array].indexOf(typeof property === "object" ? property.type : property) != -1) + else if(attrValue && [Object, Array, Number].indexOf(typeof property === "object" ? property.type : property) != -1) { // Value was not supposed to be a string, but was run through here for expandName try