[BUGFIX] Check WorkspaceEnabled for MM field related table 83/28783/9
authorSebastian Lechenbauer <email@lechenbauer.de>
Tue, 25 Mar 2014 16:55:21 +0000 (17:55 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Wed, 26 Mar 2014 09:37:10 +0000 (10:37 +0100)
commit022a3fc0fceaf3ceac862be9ca1c56414d1da9c9
treea18ab10fed40fb4d3ce055ca55862008d9ac8cf6
parent83594783a388705e2f0db39245ced30653bb7c4a
[BUGFIX] Check WorkspaceEnabled for MM field related table

If you try to edit a MM field associated to a table which doesn't use
versioning (t3ver_* fields are missing) you get a database error.
This patch adds a check if versioning for the table is enabled.

Resolves: #57291
Releases: 6.2
Change-Id: I3fc5dfeb77ce9a67a6e4494a3b2247c3007d0d25
Reviewed-on: https://review.typo3.org/28783
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/core/Classes/Database/RelationHandler.php
typo3/sysext/core/Tests/Unit/Database/RelationHandlerTest.php [new file with mode: 0644]