Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix processCreationForm and processUpdateForm in OwnerController #1544 #1553

Closed

Conversation

omelet3032
Copy link

@omelet3032 omelet3032 commented May 29, 2024

fixes #1544

@pivotal-cla
Copy link

@omelet3032 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@omelet3032 Thank you for signing the Contributor License Agreement!

@codespearhead
Copy link

@omelet3032 Can you link this PR to issue #1544 ?

To do this, you just need to add the following to the end of the PR description:

fix #1544

Copy link
Member

@dsyer dsyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only change that needs to be made is to remove the redirect attributes.

if (result.hasErrors()) {
redirectAttributes.addFlashAttribute("error", "There was an error in creating the owner.");
model.addAttribute("owner", owner);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unnecessary (it's already in the model).

@dsyer
Copy link
Member

dsyer commented Sep 12, 2024

Closing (timeout). It was a trivial change and I'll merge it if anyone wants to resubmit a fix.

@dsyer dsyer closed this Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Why redirectAttributes.addFlashAttribute next return VIEWS_OWNER_CREATE_OR_UPDATE_FORM;?
4 participants