Project

General

Profile

Actions

Bug #19429

closed

Cannot enter double numbers in TCEforms anymore

Added by Oliver Klee about 16 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2008-10-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #18855: Wrong JavaScript inclusion in t3lib_TCEformsClosedOliver Hader2008-05-26

Actions
Is duplicate of TYPO3 Core - Bug #19421: Setting password for a new BE user changes the field value to "undefined"ClosedOliver Hader2008-10-06

Actions
Actions

Also available in: Atom PDF