Skip to content

Resolved #4504 where POSTed Channel Form values were sometimes not populated correctly in case of validation error#4510

Merged
TomJaeger merged 1 commit into7.devfrom
bug/7.x/channel-form-inline-validation-post
Nov 6, 2024
Merged

Resolved #4504 where POSTed Channel Form values were sometimes not populated correctly in case of validation error#4510
TomJaeger merged 1 commit into7.devfrom
bug/7.x/channel-form-inline-validation-post

Conversation

@intoeetive
Copy link
Copy Markdown
Contributor

Resolved #4504 where POSTed Channel Form values were sometimes not populated correctly in case of validation error

…pulated correctly in case of validation error
@intoeetive intoeetive added the Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on. label Oct 6, 2024
@nerdgency
Copy link
Copy Markdown
Contributor

@intoeetive this solution works! I was wondering for a shorter version if you would consider the following:

$this->parse_variables[$key] = $this->encode_ee_tags(
    form_prep(
        ee('Request')->post($key, $this->entry($name)),
        $name
    )
);

@bryannielsen bryannielsen added this to the 7.5.3 milestone Oct 29, 2024
@TomJaeger TomJaeger merged commit 32a07db into 7.dev Nov 6, 2024
@TomJaeger TomJaeger deleted the bug/7.x/channel-form-inline-validation-post branch November 6, 2024 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using url_title parameter with Channel Form does not persist form data with inline error handling

5 participants