mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
fix nothing input into number-field results into 0 causing e.g. timesheet quantity to be always 0
This commit is contained in:
parent
b517cbaf94
commit
160de9446b
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user