Skip to content

DropDown wrong Arguments #33

@jmlpinaEtec

Description

@jmlpinaEtec

I adds the menu Items like this:
`
submenuItem = forms.menuLateral.elements.navbar.createMenuItem(i18n.getI18NMessage('set.Modificar')+' ' +i18n.getI18NMessage('set.familia'), 'forms.articulo_ng_base.modificar_articulo');
submenuItem.userData = {arg:[3]};
submenuItems.push(submenuItem);

submenuItem = forms.menuLateral.elements.navbar.createMenuItem(i18n.getI18NMessage('set.Modificar')+' ' +i18n.getI18NMessage('set.marca'), 'forms.articulo_ng_base.modificar_articulo');
submenuItem.userData = {arg:[4]};
submenuItems.push(submenuItem);
`
The process is the same but with different arguments.
But when click on the second dropdown item menu, always return the arguments of the first itemMenu[3]. If I change the name of the process, the arguments returned is correct [4].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions