Project

General

Profile

Actions

Bug #15771

closed

No range/lower like 2.000.000.000 in Flexforms

Added by Bernhard Kraft over 18 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend User Interface
Target version:
-
Start date:
2006-03-06
Due date:
% Done:

100%

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

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)


Files

flexform_range_patch_2006-03-06.diff (981 Bytes) flexform_range_patch_2006-03-06.diff Administrator Admin, 2006-03-06 18:25
Actions

Also available in: Atom PDF