Project

General

Profile

Actions

Bug #93207

closed

Duplicate error message in AjaxDataHandler.ts

Added by Simon Schaufelberger over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-01-02
Due date:
% Done:

100%

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

Description

I noticed that handleErrors is called twice in Build/Sources/TypeScript/backend/Resources/Public/TypeScript/AjaxDataHandler.ts.

Once in AjaxDataHandler->initialize and again in AjaxDataHandler->process.

One of both should be removed. I believe removing the one in initialize makes more sense as the one in process will also get called when deleting a record.

How to reproduce:

Put these lines in \TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::processAjaxRequest after "$this->tce->printLogErrorMessages();" to force an error flash message:

 $flashMessageService->getMessageQueueByIdentifier()->addMessage(GeneralUtility::makeInstance(
            \TYPO3\CMS\Core\Messaging\FlashMessage::class,
            'Duplicate error message!',
            'Duplicate error message title',
            \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR
        ));

Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Task #92199: Streamline AjaxDataHandlerUnder Review2020-09-04

Actions
Actions

Also available in: Atom PDF