Skip to content

fix: update custom-fields to v3.0.0-beta12#131

Merged
ManukMinasyan merged 1 commit intomainfrom
fix/custom-fields-multivalue-validation
Feb 16, 2026
Merged

fix: update custom-fields to v3.0.0-beta12#131
ManukMinasyan merged 1 commit intomainfrom
fix/custom-fields-multivalue-validation

Conversation

@ManukMinasyan
Copy link
Copy Markdown
Contributor

@ManukMinasyan ManukMinasyan commented Feb 16, 2026

Summary

  • Updates relaticle/custom-fields to v3.0.0-beta12
  • Fixes str_starts_with(): Argument #1 ($haystack) must be of type string, array given TypeError on multi-value field types (link, email, phone)
  • Removes starts_with and url from LinkFieldType available validation rules since these are string-only rules incompatible with array storage
  • Adds upgrade step (CleanMultiValueValidationRulesStep) to clean existing DB records

Fixes RELATICLE-CRM-2E

Test plan

  • All 341 custom-fields package tests pass
  • Bug reproduced locally via Tinkerwell before fix
  • 7 affected production fields identified via Tinkerwell audit
  • Run step 2 cleanup script on production after deploy
  • Run php artisan custom-fields:upgrade on production

Fixes string-only validation rules (starts_with, url) crashing on
multi-value fields that store arrays.
Copilot AI review requested due to automatic review settings February 16, 2026 19:54
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

@ManukMinasyan ManukMinasyan merged commit 524b830 into main Feb 16, 2026
9 checks passed
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