diff --git a/lib/WPMenu.py b/lib/WPMenu.py index c3f92c9..d1f349a 100644 --- a/lib/WPMenu.py +++ b/lib/WPMenu.py @@ -366,4 +366,8 @@ class WPMenu: def addItemMenu(self, menu, idMenu): self._logger.info("{0} : add item to menu : {1}".format(self._name, idMenu)) - \ No newline at end of file + for i in menu: + parent = self._createItemMenu(idMenu, i, parent) + for j in menu["children"]: + self._createItemMenu(idMenu, i, parent) + \ No newline at end of file