[!!!][BUGFIX] Fix wrong usage of Enum in InformationStatus Enum itself 04/42804/8
authorSascha Egerer <sascha@sascha-egerer.de>
Fri, 21 Aug 2015 09:04:36 +0000 (11:04 +0200)
committerSascha Egerer <sascha@sascha-egerer.de>
Fri, 25 Sep 2015 05:54:10 +0000 (07:54 +0200)
commit822d1e849619ee7a70a4f6926b7632f4864a644d
treeec99b1c4302ce962ece7a13cf77da13f3fb2eef6
parent74b0a27561951434cfb6c51efbc5905667dadfe1
[!!!][BUGFIX] Fix wrong usage of Enum in InformationStatus Enum itself

The Enumeration implementation of InformationStatus provides
a mapStatusToInt() method that must expect a InformationStatus instance
as parameter instead of a string.

The method mapStatusToInt() has also been replaced by "isGreaterThan" as
a comparison method fits better into the enumeration usage.

This change is breaking but should not really break anything as it
was introduced in 7.4 and only used at one place in the core.

Change-Id: I84548ba291360d1b20a607fa1e5149b95ca93bda
Resolves: #69224
Releases: master
Reviewed-on: http://review.typo3.org/42804
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Sascha Egerer <sascha@sascha-egerer.de>
Tested-by: Sascha Egerer <sascha@sascha-egerer.de>
typo3/sysext/backend/Classes/Backend/ToolbarItems/SystemInformationToolbarItem.php
typo3/sysext/backend/Classes/Toolbar/Enumeration/InformationStatus.php
typo3/sysext/core/Documentation/Changelog/7.5/Breaking-69224-FixWrongUsageOfEnumerationsInInformationStatusmapStatusToInt.rst [new file with mode: 0644]