Project

General

Profile

Actions

Bug #96667

closed

Save and preview button uses wrong pagets

Added by Philipp Kitzberger almost 3 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Start date:
2022-01-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

When using the save+preview button for a non-pages record the global pagets is being used instead of the one of the current page/folder.

I've got this global PageTS:

TCEMAIN.preview {
  tx_news_domain_model_news {
    previewPageId = 123
    useDefaultLanguageRecord = 0
    fieldToParameterMap {
      uid = tx_news_pi1[news_preview]
    }
    additionalGetParameters {
      tx_news_pi1.controller = News
      tx_news_pi1.action = detail
    }
  }
}

And for a certain folder there's this local override:

TCEMAIN.preview.tx_news_domain_model_news.previewPageId = 666

Hitting the save+preview button in that folder leads to the page 123 being opened instead of 666.

It might be related to #92409 but maybe not.


Related issues 3 (1 open2 closed)

Related to TYPO3 Core - Bug #92409: Regression with Save and Preview ButtonAccepted2020-09-25

Actions
Related to TYPO3 Core - Bug #95860: TCEMAIN.preview of root page overrides TCEMAIN.preview of sysfolder once the Button "Preview" is clickedClosed2021-11-03

Actions
Related to TYPO3 Core - Bug #98598: Preview is not working for RecordsClosed2022-10-13

Actions
Actions #1

Updated by Gerrit Code Review almost 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73193

Actions #2

Updated by Gerrit Code Review almost 3 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73193

Actions #3

Updated by Philipp Kitzberger almost 3 years ago

  • Related to Bug #92409: Regression with Save and Preview Button added
Actions #4

Updated by Kay Röseler about 2 years ago

Hello Core Team,

this fix is already available since February and according to tests it works correctly. When is it intended to bring this into the 11.5 master? We have currently managed to implement the patch ourselves.

Many greetings
Kay

Actions #5

Updated by Lorenz Ulrich almost 2 years ago

  • Related to Bug #95860: TCEMAIN.preview of root page overrides TCEMAIN.preview of sysfolder once the Button "Preview" is clicked added
Actions #6

Updated by Lorenz Ulrich almost 2 years ago

  • Related to Bug #98598: Preview is not working for Records added
Actions #7

Updated by Lorenz Ulrich almost 2 years ago

I can confirm that this patch works and solves other, related issues.

Actions #8

Updated by Gerrit Code Review almost 2 years ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77377

Actions #9

Updated by Philipp Kitzberger almost 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Benni Mack almost 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF