We found that when using the same field across different taxonomy fields, the module doesn't take the bundle into consideration for machine name uniqueness. This may be the intended behaviour, however in our case we patched the validation function to also check on the bundle type.
Now our taxonomy vocabs called "Story type" and "Callout type" can now have a shared field machine name on a term called "analysis"- and both can have the same machine name.
This may cause limitations in that it will require you to explicitly refer to the bundle and cannot rely on uniqueness on entity type alone.
Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| machine_name--unique_across_entity_bundle_combo.patch | 990 bytes | barry_fisher |
Comments
Comment #1
danrodComment #2
danrodI tested this on an old D7 instance and works as expected, even though support for D7 ended a long time ago, there is still some sites that run the Drupal 7 version of this project, so I'll commit this to the 7.x-1.x branch, hoping that someone would benefit of this addition.
Comment #3
danrodComment #4
danrod