From 160de9446b5a4e51b1e7713bda1a3638a7f61b0c Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 23 Apr 2024 12:33:04 +0200 Subject: [PATCH] fix nothing input into number-field results into 0 causing e.g. timesheet quantity to be always 0 --- api/js/etemplate/Et2Textbox/Et2Number.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/api/js/etemplate/Et2Textbox/Et2Number.ts b/api/js/etemplate/Et2Textbox/Et2Number.ts index 51816708c6..4742dff8e5 100644 --- a/api/js/etemplate/Et2Textbox/Et2Number.ts +++ b/api/js/etemplate/Et2Textbox/Et2Number.ts @@ -161,11 +161,7 @@ export class Et2Number extends Et2Textbox { let val = super.value; - if(val === "") - { - return 0; - } - else if("" + val !== "") + if("" + val !== "") { // remove decimal separator from user prefs const format = this.egw().preference('number_format');