Issue Bug Rejected

#88048PageLayoutController selecting wrong available languages

Alexander Opitz 04/01/19, 18:29 updated 03/24/22, 11:53

Description

Error you will get (TYPO3 v8.7.24):

Argument 2 passed to TYPO3\CMS\Core\Imaging\IconFactory::getIconForRecord() must be of the type array, boolean given,
called in /vagrant/webapp/htdocs/public/typo3_src/typo3/sysext/backend/Classes/View/PageLayoutView.php on line 900
Prerequisite:
  • You need Workspaces activated
HowTo Reproduce:
  • Create a page in Live WS
  • Translate this page in another WS
  • Switch back to Live WS in Page Layout Module, you can see that another language is available to select (which is wrong, as this language change is in WS not in Live)
  • Switch from Column Mode in Language Mode and the Page Layout Module gives error message above (as we try to select this translation which do not exists in Live so we get a false instead of the row array).

Regression:

This is a regression from the patch of #77558 “Doctrine: Migrate PageLayoutController”, I added a notice in the review https://review.typo3.org/c/Packages/TYPO3.CMS/+/49521

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.