If a menu does not have an id, its label will appear as one of the submenus

Bug #389431 reported by Ara Pulido
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DBus Menu
Confirmed
Medium
Unassigned
libdbusmenu (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Having this json menu structure:

[
        { "label": "I dont have an id",
         "submenu": [
                {"label": "30", "submenu": [{"label": "submenu_from_no_id"}]},
                {"id": 31,
                 "label": "value31"},
                {"id": 32,
                 "label": "value32"},
                {"id": 33,
                 "label": "value33"},
                {"id": 34,
                 "label": "value34"},
                {"id": 35,
                 "label": "value35"},
                {"id": 36,
                 "label": "value36"},
                {"id": 37,
                 "label": "value37"},
                {"id": 38,
                 "label": "value38"},
                {"id": 39,
                 "label": "value39"}
         ]
        }]

The last of the submenus, the one with the id 39, instead of having the label "value39" it will show with the label "I dont have an id". See attached screenshot.

Revision history for this message
Ara Pulido (ara) wrote :
Ted Gould (ted)
affects: turkey-pop-up → dbusmenu
visibility: private → public
Revision history for this message
Ted Gould (ted) wrote :

That's pretty nasty. I'm a little worried about this one as it might be in dbusmenu-glib. Need to investigate more.

Changed in dbusmenu:
importance: Undecided → Medium
status: New → Confirmed
Ted Gould (ted)
Changed in libdbusmenu (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.