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
87 stars 174 forks source link

Case: when plugin added inside IRRE / inline - wrong returnUrl for record edit form #908

Closed olegkarun closed 1 month ago

olegkarun commented 1 year ago

TYPO3: 11.5.27 Powermail: 10.7.2 News: 9.4.0 - but tested with custom IRRE / inline - same result PHP Version: 7.4.3

Case if added Powermail Plugin as content element of IRRE / inline filed. For example EXT: news -> News item (Entry) -> Content elements (filed) -> add Powermail plugin -> click for edit related form -> close related form -> we will get error 500

Problem that in this case edit link have wrong returnUrl as /typo3/ajax/record/inline/details?token... but should be something from parent element like News Item in this case. like it work for FAL. Example =edit&returnUrl=/typo3/record/edit?token=...&edit[tx_news_domain_model_news][..]=edit &returnUrl=/typo3/module/web/list?token=...&id=163&table=&pointer=1&route=/record/edit# instead =edit&returnUrl=/typo3/ajax/record/inline/details?token=...

markustobler commented 1 month ago

I have a similar problem using powermail_pi1 content element as TCA inline filed. I can not use 'default' => 'powermail_pi1', when I try to add a new record I got an 500 error.

image

mschwemer commented 1 month ago

Hi

just re-reading this issue ... puuh.

Powermail was never intended to be used in an content element in news or as an inline element in a custom tca.

I consider it as an "edge-case" and close it right now.

If you do not confirm, feel free to re-open this issue or ask at in2code for paid support.