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.
Steps to reproduce:
- Enable hs_taxonomy
- Create a new vocabulary
- Replace name with name_field
- Create a new term
This happens in _hs_taxonomy_hierarchical_select_get_tree when the query returns no result. $terms remains null but that isn't checked when handling the Title support on line 1070 of hs_taxonomy.module.
Comment | File | Size | Author |
---|---|---|---|
#2 | hs-array_keys-2568067-1.patch | 780 bytes | lammensj |
Comments
Comment #2
lammensj CreditAttribution: lammensj commentedComment #3
lammensj CreditAttribution: lammensj commentedComment #4
hgoto CreditAttribution: hgoto as a volunteer and at Studio Umi commentedLammensJ, Thank you for the patch. I confirmed the error disappeared by using the patch #2. I think this issue is fixed.
This is another issue but the related code is as following:
And the variables `$vocabulary` and `$term_entities` are never used after assignment...
Comment #5
stefan.r CreditAttribution: stefan.r commentedCommitted, thanks!