[BUGFIX] Wrong calculation of maximum value for checkbox fields 53/24653/2
authorNicole Cordes <typo3@cordes.co>
Sat, 12 Oct 2013 16:36:30 +0000 (18:36 +0200)
committerNicole Cordes <typo3@cordes.co>
Sat, 12 Oct 2013 17:22:51 +0000 (19:22 +0200)
commit33d441555e8e9ad8f6c6c6a5157397815597d057
tree932189099e2e19ee967cc08bdcb1aaa6373cc8f6
parente3d02efec5a5873fed99d2981a7cf934bffe12bb
[BUGFIX] Wrong calculation of maximum value for checkbox fields

This patch corrects the calculation of the maximum value for a group
of checkboxes which is stored as bit flag value in the database. The
formular for the maximum value is 2nd power of the item count minus one.

Resolves: #52104
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Change-Id: I0eb430b72a072838c6ac3bc3f5e339ff2509c455
Reviewed-on: https://review.typo3.org/24653
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php