fix nothing input into number-field results into 0 causing e.g. timesheet quantity to be always 0

This commit is contained in:
ralf 2024-04-23 12:33:04 +02:00
parent b517cbaf94
commit 160de9446b

View File

@ -161,11 +161,7 @@ export class Et2Number extends Et2Textbox
{ {
let val = super.value; let val = super.value;
if(val === "") if("" + val !== "")
{
return 0;
}
else if("" + val !== "")
{ {
// remove decimal separator from user prefs // remove decimal separator from user prefs
const format = this.egw().preference('number_format'); const format = this.egw().preference('number_format');