- Issue created by @oldeb
- Merge request !4Change CountryConstraint plugin ID to avoid collision with Address contrib module. → (Merged) created by oldeb
- 🇮🇳India Yogesh Kambari
Hi,
MR looks good to me. Validated on Drupal instance with version 10.0.10. Attaching screenshots for reference. - 🇨🇳China g089h515r806
1, The ID need be changed at CountryConstraintFieldValidationRule:
public function getConstraintName(): string{ return "Country"; }
change it to : SymfonyCountry
2,Need to provide a update path if some user use this constraint but not use "Address" module, otherwise they will get fatal error "PluginNotFoundException".
- First commit to issue fork.
- 🇺🇦Ukraine taraskorpach Lutsk
I've changed the ID in the CountryConstraintFieldValidationRule.
To be honest, I didn't quite understand your point regarding the update path. Given that neither the constraint ID nor its name is recorded in the database or configurations, I'm unsure how we can update its value. Also, how does this affect users who are utilizing the constraint with the old ID?
Apologies for these basic questions; I haven't thoroughly explored the module yet.
- Status changed to Fixed
11 months ago 6:27am 3 January 2024 - 🇨🇳China g089h515r806
This change does not need a update path. But people need clear cache if they using this plugin.
Automatically closed - issue fixed for 2 weeks with no activity.