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

Warning: Undefined array key "i18n_node" #107

Closed indigoxela closed 1 year ago

indigoxela commented 1 year ago

Warning: Undefined array key "i18n_node" in i18n_node_type_settings_submit() (line 440 of ...modules/i18n/i18n_node/i18n_node.module).

When creating a node_type, the name isn't set yet in the form. So currently the i18n settings won't even get set because of conditions. Loading existing settings isn't possible then. But setting them would be. The form values should be in place, though, when dynamically loading via ajax. The check for node type might go to the submit function.

Also, the setting don't get removed when deleting a content type. Also fix that.