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 pet update functionality - Fixed issue where editing a pet's type… #1765

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

VishantOwO
Copy link

Fix Pet Update Functionality

Description

Fixed an issue where editing a pet's type or name wasn't persisting in the database, even though a success message was shown.

Changes made

  • Modified processUpdateForm to update existing pet properties instead of using addPet
  • Added proper handling of existing pet updates
  • Maintained all existing validation checks

Note: I'm new to contributing and haven't added tests yet. I'd be happy to add them if required.

… or name wasn't persisting - Updated processUpdateForm to modify existing pet instead of adding new one - Added proper handling of existing pet update Fixes spring-projects#1752
@pivotal-cla
Copy link

@VishantOwO 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

@VishantOwO Thank you for signing the Contributor License Agreement!

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.

4 participants