Project

General

Profile

Actions

Bug #28753

closed

Flashmessage queue does not work in FE mode

Added by Joachim Mathes over 12 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Frontend
Target version:
-
Start date:
2011-08-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

just a question: Will issue #24203 be fixed in the 4.4 branch of TYPO3, too?

Best regards
Joachim

Actions #1

Updated by Thorsten Kahler over 12 years ago

  • Category set to Frontend
  • Status changed from New to Needs Feedback
  • Assignee set to Benni Mack

I'd say, based on the patch, that it's rather a feature than a bugfix.

But I leave it to the release managers to decide upon that.

Actions #2

Updated by Joachim Mathes over 12 years ago

The main issue is the following method of class t3lib_FlashMessageQueue:

protected static function getFlashMessagesFromSession() {
    $flashMessages = $GLOBALS['BE_USER']->getSessionData('core.template.flashMessages');
    return is_array($flashMessages) ? $flashMessages : array();
}

This is why a BE-user has to be logged-in in the Extbase (flashmessage) context. The code logic is replaced by

protected static function getUserByContext() {
    return TYPO3_MODE === 'BE' ? $GLOBALS['BE_USER'] : $GLOBALS['TSFE']->fe_user;
}

in TYPO3 4.5.3, which looks appropriate to me.

Since the public API of class t3lib_FlashMessageQueue is the same for both branches, it might be possible to just use the 4.5 variant in 4.4. This is what I do as a workaround at the moment.

Best regards
Joachim

Actions #3

Updated by Oliver Hader over 12 years ago

  • Target version changed from 1305 to 1341
Actions #4

Updated by Joachim Mathes over 12 years ago

Some further information: Extbase 1.2 seems to work perfectly fine with TYPO3 4.4. But I have to use Extbase version 1.3.0 with TYPO3 4.4.

Actions #5

Updated by Wouter Wolters almost 11 years ago

  • Status changed from Needs Feedback to Closed

4.4 is not supported anymore. Closed.

Actions #6

Updated by Ernesto Baschny almost 11 years ago

  • Target version deleted (1341)
Actions

Also available in: Atom PDF