I've just been testing this module and it's just what I need. However, when I have Taxonomy Super Select enabled for the content type, TRPNT's changes to the "required" state are ignored. I'll leave this as a support request for now, because I think there is something I could try to change the order in which each module alters the form, that might help. I just can't think of it right now. If I figure it out, I'll update this with my result.

CommentFileSizeAuthor
#2 patch-tss-trpnt.txt5.03 KBLanae

Comments

Lanae’s picture

Well, changing the weights of the modules in the system table didn't help. What next?

By default, both were set to 1. I tested with:
taxonomy_super_select = 1, trpnt weight =2
taxonomy_super_select = 2, trpnt weight =1
In both cases, trpnt requirement is ignored when taxonomy_super_select is enabled.

Lanae’s picture

StatusFileSize
new5.03 KB

After poring over Taxonomy Super Select code, I figured out it not only replaces $form['taxonomy'] stuff with its own recursive creations, but it also removes #required fields from the form and replaces all validation for TSS enabled vocabs with its own, which pulls requirements from the database.

I couldn't figure out how to patch trpnt for this, but I started a patch to TSS to make it recognize trpnt requirements, which sort-of works for my case. I don't think it will work for nested vocabs though, and it doesn't work with Multistep, another module I'm trying to use on the same content type as trpnt. Oh well... I'll post it anyway, in case it helps someone else.