Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DropDown wrong Arguments #33

Open
jmlpinaEtec opened this issue Jan 28, 2020 · 0 comments
Open

DropDown wrong Arguments #33

jmlpinaEtec opened this issue Jan 28, 2020 · 0 comments

Comments

@jmlpinaEtec
Copy link

jmlpinaEtec commented Jan 28, 2020

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].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant