[MAGNOLIA-2858] ContextMenu.java: Comparing string with == instead of .equals Created: 28/Aug/09  Updated: 23/Jan/13  Resolved: 01/Sep/09

Status: Closed
Project: Magnolia
Component/s: gui
Affects Version/s: 4.1
Fix Version/s: 4.1.1

Type: Bug Priority: Major
Reporter: Luca Boati Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File ContextMenu.patch    
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Method "public ContextMenuItem getMenuItemByName(String name)" compares two strings using == instead of equals method.
I'm not able to customize the function bar of a custom tree using context menu items.

cheers
Luca



 Comments   
Comment by Magnolia International [ 01/Sep/09 ]

Oops! Thanks for spotting this Luca, patch applied

Generated at Mon Feb 12 03:40:48 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.