Open micru opened 9 years ago
Hi Michael,
thanks for your bug report. I will look into it and fix it. The plugin kind of expects the same structure in all branches, but yeah that's not the best way to handle this :)
Thanks a lot for your feedback!
Cheers
Hi,
there seems to be a problem when one of the branch-roots has no childs at all, while some other branches have at least 2 sub-levels.
The Problem is reproducible with the following document structure: /de/uber-uns/team /en/about/team /fr
When i open the german or english team document, i get the following error:
Fatal error: Call to a member function getChilds() on a non-object in /var/www/sites/project/htdocs/plugins/LanguageSwitcher/lib/LanguageSwitcher/Switcher.php on line 139
pimcore Version: 3.0.5 (Build: 3450)As a workaround, i check if the
getChilds
method exists before calling it. But i am aware that this is just a basic workaround.Nevertheless great work and a really helpful extension. Thanks a lot!