in2code-de / powermail

This is the official repository of the TYPO3 extension powermail! Powermail is a well-known, editor-friendly, powerful and easy mailform extension for TYPO3
https://in2code.de
86 stars 174 forks source link

Command line call of powermail:export throws RuntimeException #1107

Closed BokuNoMaxi closed 3 weeks ago

BokuNoMaxi commented 3 weeks ago

When you run the command like typo3 does it via CLI it throws following exception:

[ RuntimeException ] Unable to call method "getQueryParams" of non-object "request".

To reproduce simply call the command in the terminal: vendor/bin/typo3 powermail:export testmail@test.at

Powermail Version: 12.3.5

BokuNoMaxi commented 3 weeks ago

Error is from global TypoScript [traverse(request.getQueryParams(), 'tx_news_pi1/news') > 0] there is no request in command but it is loaded anyway so it throws exception

the condition needs to be fixed: [request && traverse(request.getQueryParams(), 'tx_news_pi1/news') > 0]