Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Right now module works great when editing taxonomy term, however it does not work when editing it in taxonomy manager module.
Comment | File | Size | Author |
---|---|---|---|
#3 | conditional_fields-taxonomy-manager-integration-1947080-3-7.patch | 687 bytes | adrien.felipe |
| |||
#2 | conditional_fields-taxonomy_manager-1947080-2.patch | 720 bytes | dealancer |
#1 | conditional_fields-taxonomy_manager-1947080-1.patch | 629 bytes | dealancer |
Comments
Comment #1
dealancer CreditAttribution: dealancer commentedTaxonomy Manager embeds term form dynamically in AJAX into the it's own form, which is done in a special and tricky way.
Here is a patch that checks if Taxonomy Manager form is used and calls to the subform rather then the main form.
Comment #2
dealancer CreditAttribution: dealancer commentedFixed previous Patch. Now it works without error messages when moving terms.
Comment #3
adrien.felipe CreditAttribution: adrien.felipe commentedWhile the previous patches didn't work for the last release, I used a similar approach, but less invasive.
The function conditional_fields_form_after_build can't properly access the dependent location as the data is one level deeper in the form array when using taxonomy manager. But we can't switch the whole form one level down as did the previous patch as some other data is needed at the root of the form.
Attached patch just adds the extra level to the location path when it detects the taxonomy manager's form.
I did several tests with several field types and it works for me.
Comment #4
adrien.felipe CreditAttribution: adrien.felipe commented