[BUGFIX] Wrong calculation of maximum value for checkbox fields 50/24650/2
authorNicole Cordes <typo3@cordes.co>
Sat, 12 Oct 2013 16:36:30 +0000 (18:36 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 12 Oct 2013 16:53:36 +0000 (18:53 +0200)
commit018fc1e543eb9700979beae5431fdb21bad47dc2
tree3d7960fd6a90866d9532392fe7822ade5701fac2
parenta6b66436acec97684e83cd24480baa4b62bb0da5
[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/24650
Reviewed-by: Thorsten Kahler
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php