Bug #19429
closedCannot enter double numbers in TCEforms anymore
0%
Description
Steps to reproduce:
1. In Web > List, open a record that has a double2 field, e.g. a seminar record from the seminars extension.
2. In a double2 field (e.g. the first price field), enter "1".
3. Tab to another field.
Expected result:
The number is changed to 1.00 or (1,00).
Actual result:
The number is changed to "NaN00", and the following error is logged in Firefox' error console:
Warnung: reference to undefined property TS.decimalSign
Quelldatei: http://localhost/t3lib/jsfunc.evalfield.js
Zeile: 172
This is the offending JavaScript code part:
function evalFunc_parseDouble(value) {
var theVal = ''+value;
var dec=0;
if (!value) return 0;
for (var a=theVal.length; a>0; a--) {
if (theVal.substr(a-1,1)=='.' || theVal.substr(a-1,1)==',') {
dec = theVal.substr(a);
theVal = theVal.substr(0,a-1);
break;
}
}
dec = this.getNumChars(dec)+'00';
theVal=this.parseInt(this.noSpace(theVal))+TS.decimalSign+dec.substr(0,2);
(the last line)
This problem also with the trunk. According to a report by a user, this user to work with 4.2.1 and broke with 4.2.2.
(issue imported from #M9507)