This is an automated email from the ASF dual-hosted git repository.
mridulpathak pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release24.09 by this push:
new b37a14d4f7 Keep the names of menu items inherited through menu extends
b37a14d4f7 is described below
commit b37a14d4f76601c3e29f6533bf3fa23cba3e15f3
Author: Mridul Pathak <[email protected]>
AuthorDate: Thu Oct 29 17:28:51 2026 +0530
Keep the names of menu items inherited through menu extends
When a menu extends another one, each inherited menu item was copied under
a new name made of the child menu's name and the item's name. A menu-item of
the same name in the child menu was then added next to the inherited one
instead of overriding it, and an inherited item never matched the selected item
name, so it was never rendered as selected. The copy now keeps the item's own
name; it still belongs to the child menu.
---
.../src/main/java/org/apache/ofbiz/widget/model/ModelMenuItem.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelMenuItem.java
b/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelMenuItem.java
index e9b1455752..2819b8c0a3 100644
---
a/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelMenuItem.java
+++
b/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelMenuItem.java
@@ -167,7 +167,7 @@ public class ModelMenuItem extends ModelWidget {
}
public ModelMenuItem(ModelMenuItem originMenuItem, ModelMenu modelMenu,
ModelMenuItem parentMenuItem) {
- super(modelMenu.getName() + originMenuItem.getName());
+ super(originMenuItem.getName());
this.modelMenu = modelMenu;
this.parentMenuItem = parentMenuItem;
this.entityName = originMenuItem.entityName;