[BUGFIX] Respect TSconfig option showHistory 58/55658/3
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Sat, 10 Feb 2018 21:39:48 +0000 (22:39 +0100)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Sat, 10 Feb 2018 22:19:10 +0000 (23:19 +0100)
commit211383c5feff38fa3de542dea0786c37857cfe7c
treef175ac829f7a90bdaed3dcb922b1c3502b83a1db
parent2b4c842e87f0c74aa20954e166b7d15568bd317d
[BUGFIX] Respect TSconfig option showHistory

The TSconfig `options.showHistory` is not respected inside the core.
Add checks for list view and context menu.

Inside EditDocumentController the "Record History"
button is being rendered twice but the TSconfig
condition is only checked once.

Resolves: #79128
Releases: master, 8.7
Change-Id: Ifa884be5882772e8c267a7eb8036c53cf987bcfb
Reviewed-on: https://review.typo3.org/55658
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/backend/Classes/ContextMenu/ItemProviders/RecordProvider.php
typo3/sysext/backend/Classes/Controller/EditDocumentController.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php