moqui-framework
moqui-framework copied to clipboard
getMenuData() did not return the correct menu name
I added some menus to the subscreen_item table.
like this:

It can be displayed normally on the interface, but the name changes after clicking.
This is when the menu is not clicked, like this:

Note the menu example 1:

The menu name changed after clicking,
I read the code carefully and found that the problem should appear here.

My modification suggestions:
String lastTitle = fullUrlInfo.targetScreen.getDefaultMenuName()
Change to
String lastTitle = curScreen.getSubscreensItem(lastPathItem).menuTitle?:fullUrlInfo.targetScreen.getDefaultMenuName()