When using devel generate for Nodes with Taxonomy fields, the taxonomy terms are not so random.

See:
- Patch: Fixing fact that certain tax terms are nearly always selected by devel_generate
- Taxonomy terms aren't randomised when generating nodes with devel_generate

Opening this new ticket here, because the others are marked als closed/fixed/duplicated.
But this is not solved in devel_generate 7.x yet.

The patches in the above issues did not apply cleanly.

Comments

ndf created an issue. See original summary.

ndf’s picture

Here a simple approach.

I noticed this can give duplicated results for multi-value fields.

ndf’s picture

Issue summary: View changes
lukas_w’s picture

Since I just had to get around this issue, here is another approach.

This one prevents duplicates in multi-value fields and also selects terms from all allowed vocabularies, if the field can contain terms from more than one vocabulary.