Project

General

Profile

Actions

Bug #19442

closed

When inserting prices in tx_commerce the input is always transformed into NaN##

Added by Markus Bucher about 16 years ago. Updated about 6 years ago.

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

0%

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

Description

jsfunc.js seems to interpret prices incorrect.
Examples:

122.00 is transferred into "NaN00"
1888.12 is transferred into "NaN12"

0 is not transferred. Blank neither.

(issue imported from #M9524)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #19423: Edit in Rich Text Editor - Button doesn't work anymore in Web>PageClosedOliver Hader2008-10-06

Actions
Actions #1

Updated by Stefano Cecere about 16 years ago

i confirm this bug!
(on common decimal fields!!!)

Actions #2

Updated by Stefano Cecere about 16 years ago

it seems the bug is in line 172 of jsfunc.evalfield.js

theVal=this.parseInt(this.noSpace(theVal))+TS.decimalSign+dec.substr(0,2);

it's this function call that returns the NaN00

Actions #3

Updated by Stefano Cecere about 16 years ago

is seems that that TS.decimalSign variable is undefined .. where does it come from?

Actions #4

Updated by Stefano Cecere about 16 years ago

yes the problem is that TS.decimalSign undefined...

Actions #5

Updated by Steffen Kamper about 16 years ago

is defined in jsfunc.tbe_editor.js

Actions #6

Updated by Stefano Cecere about 16 years ago

yes i found it...:

function typoSetup () {
this.passwordDummy = '********';
this.decimalSign = '.';
}
var TS = new typoSetup();

but checking the whole script running (via Firebug) TS.decimalSign is undefined when it is called jsfunc.evalfield.js

the bug happens either in FF 3 and Safari 3 (so it isn't another FF 3 quirk)

Actions #7

Updated by Stefano Cecere about 16 years ago

could it be it is because jsfunc.evalfield.js is loaded in the main page header, and jsfunc.tbe_editor.js in the sub sub iframe of the page?

Actions #8

Updated by Christian Hernmarck about 16 years ago

Maybe same as #19423 ?

Actions #9

Updated by Stefano Cecere about 16 years ago

yes, it is the same problem (the order of loading .js files and the TS object not istantiated)

Actions #10

Updated by Michael Stucki about 16 years ago

Duplicate.

Actions #11

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF