Skip to content

Commit

Permalink
Merge pull request #49 from frappant/hotfix/hotfix/bug-45_Export-prob…
Browse files Browse the repository at this point in the history
…lem-with-backend-view

[BUGFIX] Export problem with backend View closes #45
  • Loading branch information
jonashirschi committed Feb 16, 2022
2 parents bd25d9d + 737cbe4 commit 5b19bea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
17 changes: 10 additions & 7 deletions Classes/Controller/FormEntryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,21 @@ public function injectFormAnswersUtility(\Frappant\FrpFormAnswers\Utility\FormAn
*/
protected function initializeView(ViewInterface $view)
{
$this->iconFactory = GeneralUtility::makeInstance(IconFactory::class);
/** @var BackendTemplateView $view */
parent::initializeView($view);
$view->getModuleTemplate()->getDocHeaderComponent()->setMetaInformation([]);
$this->iconFactory = GeneralUtility::makeInstance(IconFactory::class);

if ($this->actionMethodName != 'exportAction') {
$view->getModuleTemplate()->getDocHeaderComponent()->setMetaInformation([]);

$pageRenderer = $this->view->getModuleTemplate()->getPageRenderer();
$pageRenderer->addInlineLanguageLabelFile('EXT:lang/Resources/Private/Language/locallang_core.xlf');
$pageRenderer = $this->view->getModuleTemplate()->getPageRenderer();
$pageRenderer->addInlineLanguageLabelFile('EXT:lang/Resources/Private/Language/locallang_core.xlf');

$this->createMenu();
$this->createButtons();
$this->createMenu();
$this->createButtons();

$view->assign('showSupportArea', $this->showSupportArea());
$view->assign('showSupportArea', $this->showSupportArea());
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
'uploadfolder' => '0',
'createDirs' => '',
'clearCacheOnLoad' => 0,
'version' => '3.1.0',
'version' => '3.1.1',
'constraints' => [
'depends' => [
'typo3' => '10.4.0-10.4.99',
Expand Down

0 comments on commit 5b19bea

Please sign in to comment.