github Relaticle/custom-fields 3.0.0-beta12
v3.0.0-beta12

pre-release7 hours ago

Fix: Remove string-only validation rules from multi-value field types

Multi-value fields (link, email, phone) store arrays in json_value. Rules like starts_with and url expect strings and cause TypeError when applied to array values.

Changes

  • Remove STARTS_WITH and URL from LinkFieldType available validation rules
  • Add CleanMultiValueValidationRulesStep upgrade step to clean existing database records with incompatible rules
  • Update test datasets to reflect corrected allowed rules

Upgrade

Run php artisan custom-fields:upgrade to clean up existing fields with incompatible validation rules.

Don't miss a new custom-fields release

NewReleases is sending notifications on new releases.