WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Allow reading of processed form in CrudController #7254

@pkly

Description

@pkly

Currently it is impossible to read anything from the form, as the controller does not pass it to any events or protected functions. It's simply read, processed and discarded.

Short description of what this feature will allow to do:
Allow custom processing of forms in edit/new actions.

Example of how to use this feature

        if ($newForm->isSubmitted() && $newForm->isValid()) {
            $this->processUploadedFiles($newForm);
            $this->processNewForm($newForm);

We could use it in our application as it does things EA really doesn't allow by default (injecting entities dynamically in subforms, main forms, etc.) right now I need to override the new method and manually look for the submit button, then find the values I passed (without processing from form), you can see how it's annoying.

It wouldn't be a lot of work either, since it's just 2 methods, that return void and do nothing by default.
If accepted I could prepare the MR for it too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions