backdrop-contrib / i18n

Collection of modules to extend Backdrop CMS multilingual capabilities
https://backdropcms.org/project/i18n
GNU General Public License v2.0
2 stars 5 forks source link

Deleting localized vocabulary gives error #70

Closed laryn closed 3 years ago

laryn commented 3 years ago

Deleting a localized vocabulary with terms in it gives the following error:

Error: Call to a member function get_translations() on int in i18n_taxonomy_taxonomy_term_delete() (line 632 of /app/modules/i18n/i18n_taxonomy/i18n_taxonomy.module).

When I reload the page, the terms are gone and I can now successfully delete the vocabulary in a second attempt.

indigoxela commented 3 years ago

Seems like a bug, but I struggle to reproduce.

My approaches:

Second approach:

Third approach:

@laryn which step might I be missing?

indigoxela commented 3 years ago

Now I found a way to reproduce - switching the i18n_mode can cause trouble.

My steps:

Should be fixed in 2a063171