Issue Bug Closed

#15771No range/lower like 2.000.000.000 in Flexforms

Bernhard Kraft 03/06/06, 18:25 updated 10/02/18, 12:33

Description

The range: upper/lower evaluation in Flexforms is done with the same code as for normal tables. Normally an integer field would be of type integer in the table and thus the passed value to t3lib_tcemain.php method “checkValue_input” would be an integer.

But if flexforms are used the passed value is of type string and also the compare value from the DS is a string.

Now it is the case that the following script:
echo ('200000000''-200000000')?1:0;
?>

return 1 unexpectetly on 32-bit machines.

To prevent this from not working upper/lower bounds I added intval() calls to all four uses of $value and upper/lower.

See the attached patch:
flexform_range_patch_2006-03-06.diff

(issue imported from #M2776)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.