powermail icon indicating copy to clipboard operation
powermail copied to clipboard

Make view of FormController available in *RenderViewEvents

Open haraldwitt opened this issue 1 year ago • 1 comments

This resolves issue: https://github.com/in2code-de/powermail/issues/1053

haraldwitt avatar Jun 12 '24 13:06 haraldwitt

The update of VariablesViewHelper.php solves issue https://github.com/in2code-de/powermail/issues/1061

haraldwitt avatar Jun 17 '24 10:06 haraldwitt

Hi Harald

Thanks for your pull request and your efforts.

Since the method signature of the event is public api, I cannot add it this way. These changes are breaking. The next breaking changes will be with the TYPO3 v13 compatible version.

If you can make it non-braking, I will have another look.

Non-breaking means:

  • move the new argument to the end of the method signature
  • make the argument optional

Marcus

mschwemer avatar Jul 12 '24 14:07 mschwemer

Hi Marcus

Yes you are right. In general it would be breaking if some third party would make an instance of these events. But I'ts the sense of the events to avoid exactly this. The third party should always use EventListeners and the getters and setters of the event.

But it doesn't hurt. I'll make this non-breaking.

Harald

haraldwitt avatar Jul 15 '24 05:07 haraldwitt

I've used those changes to fix error with f:cObject in plugin's thx.body and it worked.

rupasix avatar Jul 17 '24 08:07 rupasix

That's fine. For the problem with f:cObject this change would have been enough: https://github.com/in2code-de/powermail/pull/1054/commits/c826abd93cf51dac798d837096d9a70bf3e77d24

All other changes are new features

haraldwitt avatar Jul 17 '24 09:07 haraldwitt

@haraldwitt, thanks for your patch! Working just fine ;-)

kitzberger avatar Jul 26 '24 10:07 kitzberger

@haraldwitt sorry for bothering you again

I tested the branch and 36 of 95 behaviour tests are failing. I will not merge this as is.

Furthermore about your comment in https://github.com/in2code-de/powermail/pull/1054#issuecomment-2232883685 I would prefer to split features and bugfixes into separate PRs.

TIA

mschwemer avatar Sep 25 '24 15:09 mschwemer