Skip to content

Conversation

@snipe
Copy link
Member

@snipe snipe commented Nov 4, 2025

Not sure where this broke, but it looks like the UniqueUndeletedTrait isn't actually being invoked here, at least not on a PATCH update via the API, so it wasn't seeing its own ID, causing an erroneous "The serial must be unique" validation error when updating the original asset in the API.

This is a stab at correcting that to fix #18021

Copy link
Collaborator

@marcusmoore marcusmoore left a comment

Choose a reason for hiding this comment

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

I haven't pulled this down to test it but we're doing the same for asset_tag and I think this approach works (at least for now)

@snipe snipe merged commit 37eb638 into develop Nov 4, 2025
8 checks passed
@snipe snipe deleted the #18021-fix-patch-api-with-unique-serial branch November 4, 2025 21:23
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.

3 participants