Skip to content

Conversation

@snipe
Copy link
Member

@snipe snipe commented May 8, 2025

On the redirect if data is not complete (or the validation rules have changed since the asset was created/last updated), it was incorrectly redirecting to the edit asset page if the field was marked as unique, even if it was already unique. This is because the UniqueUndeletedTrait and therefore the unique_undeleted validator could not see the present model, so the existing record couldn't exclude its own ID from validation.

Thanks for the rubber ducking @marcusmoore and @uberbrady! 🫶🏻

@snipe snipe changed the title Fixed #16863 - better handle custom fields validation when unique but nor required Fixed #16863 - better handle custom fields validation when unique but not required May 8, 2025
@snipe snipe merged commit f6b21fd into develop May 8, 2025
7 checks passed
@snipe snipe deleted the fixed_#16863_custom_fields_validation branch May 8, 2025 14:09
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.

2 participants