[TYPO3-core] RFC: #15401 Pages in Workspaces are not editable anymore, course of a "PHP Catchable Fatal Error"

Georg Ringer mail at ringerge.org
Wed Aug 11 18:14:55 CEST 2010


Hi,

this is a SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=15401
http://bugs.typo3.org/view.php?id=2567

Branches: trunk, 4-4, 4-3, 4-2

Problem:
After forcing arrays as parameters in sprites (#14880), there is
suddenly a need to fix a bug which is known since 02/2006 because a
fatal error is thrown ;)

If working with workspaces and multilingual pages there is a bug in the
page view because the translations of the live website are shown instead
of the ones from the current workspace. Besides the fatal error there
are multiple other errors like described in #2567: "therefore its not
possible to create a translation of the offlineversion, better: its
created but not shown and cant be used. "

Solution:
call t3lib_BEfunc::versioningPlaceholderClause to get only the languages
of the current workspace


How to test:
1) Requirements: 2+ WS, 2+ languages
2) Create a page in Live WS
3) Create one translation in WS #1
4) Switch to WS #2 > Error
5) Apply patch and recheck

Further test
1) Create a 3rd language in live WS
2) Create a translation for language #1 in WS#1
3) Create a translation for language #2 in WS#2
4) Switch to WS#1 and you will see that you can now create a new
translation of #2 and otherwise

Additional information:
- This is a really great example why type hinting is so important
- Thanks to Michael Elzer for sponsoring this


regards
Georg
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 15401-ws-lang.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100811/c1a1499c/attachment.asc>


More information about the TYPO3-team-core mailing list