When I try to delete terms with children, with the "Delete children of selected terms, if there are any" option selected, I get this warning.

Warning: Illegal offset type in Drupal\taxonomy_manager\TaxonomyManagerHelper->deleteTerms() (line 224 of modules/contrib/taxonomy_manager/src/TaxonomyManagerHelper.php)

Comments

balis_m created an issue. See original summary.

balis_m’s picture

Here is the patch that solves the issue.

balis_m’s picture

Status: Active » Needs review
gngn’s picture

#2 worked for me.
I think it's quite simple - so RTBC+1

phily’s picture

Status: Needs review » Reviewed & tested by the community

Patch #2 works for me using Drupal 9.3.12 and Taxonomy Manager 2.0.6
Thanks

vladimiraus’s picture

Status: Reviewed & tested by the community » Fixed

Thank you. Committed.

  • VladimirAus committed dc7535e on 2.0.x authored by balis_m
    Issue #3179603 by balis_m, gngn, PhilY, VladimirAus: Warning: Illegal...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.