- 🇩🇪Germany osopolar 🇩🇪 GER 🌐
Add patch for 2.x branch, as since 2.2.2 patch from #7 (3.x for 3.x and 2.x <= 2.1.1) does not work anymore for 2.x branch and development currently takes place in 2.x branch, but not 3.x, see 🌱 Roadmap for 3.x Active .
Currently the module seems to ensure uniqueness of a single field but it would be nice to check uniqueness of fields in combination. In my use case I have a taxonomy term reference called product. I want the node title to be unique for each product, so if I have a node referencing product "a" with title "foo" I want to make sure to not have another node of product "a" with the same title, but it is fine if a node with product "b" also has title "foo".
It is already possible using the hook_query_unique_field_ajax_alter() but it's somehow not transparent as on the field settings form I do not have an option like "unique in combination with field product".
Maybe in version 3 the check for uniqueness could be implemented as plugin that way there won't be any need to alter queries at all, just add a new plugin for a new use case, not already covered by the module.
Needs review
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Add patch for 2.x branch, as since 2.2.2 patch from #7 (3.x for 3.x and 2.x <= 2.1.1) does not work anymore for 2.x branch and development currently takes place in 2.x branch, but not 3.x, see 🌱 Roadmap for 3.x Active .