[BUGFIX] Force icon overlay for deleted records
authorFrancois Suter <francois@typo3.org>
Tue, 19 Apr 2011 11:51:27 +0000 (13:51 +0200)
committerOliver Hader <oliver@typo3.org>
Fri, 6 May 2011 16:27:19 +0000 (18:27 +0200)
commitcd651b8b8cfda37b5b31dc3c7cd36a75811b9369
tree13fcaecaba70acf31449277a8e5197c0998cc7b5
parent281fd9ad1ed89fde2428e96cc78c6597c6a13bba
[BUGFIX] Force icon overlay for deleted records

t3lib_iconWorks::mapRecordOverlayToSpriteIconName() defines the
overlays to display for any given record icon, but it not workspace-
aware. However a pending request adds a hook to override the
icon overlays. This enables the "version" extension to hook into
the process and force the overlays to "deleted" when the current
record's t3ver_state = 2 (i.e. it is deleted in a workspace).

Test in conjunction with https://review.typo3.org/#change,1459

Change-Id: I63793da2450dbf5113218441713a5edb79e6f21d
Resolves: #24641
Releases: 4.6, 4.5
typo3/sysext/version/class.tx_version_iconworks.php [new file with mode: 0644]
typo3/sysext/version/ext_localconf.php