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

Modifying the Internal Part Number (ipn) field via a PATCH request also modifies other fields unexpectedly. #800

Closed
novojitsaha opened this issue Dec 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@novojitsaha
Copy link

novojitsaha commented Dec 12, 2024

Description
Updating the Internal Part Number (ipn) field of a part via a PATCH request also sometimes modifies other fields of that part unexpectedly. As shown in the screenshot, it sometimes changes other random fields like Favorite, Minimum stock, Needs review.

To Reproduce

PATCH https://hostname/api/parts/1
Authorization: Bearer xxx
Content-Type: application/merge-patch+json
Body: {"ipn": "IPN-000-001A"}

Expected behavior
Only the IPN field should be changed.

Screenshots
image

Server Side

  • Part-DB Version: 1.13.2
  • PHP Version: 8.1.2-1ubuntu2.19 (SAPI: apache2handler)
  • Database Server: 10.6.18-MariaDB-0ubuntu0.22.04.1
@novojitsaha novojitsaha added the bug Something isn't working label Dec 12, 2024
jbtronics added a commit that referenced this issue Jan 5, 2025
@jbtronics
Copy link
Member

Thanks.

This is fixed with the latest commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants