changeset 84f17beb09d1 in sao:6.0
details: https://hg.tryton.org/sao?cmd=changeset&node=84f17beb09d1
description:
Use last action name when selecting from the same keyword
issue10661
review373261002
(grafted from 36dfcc5fdccaf4c2b202098a2563b040e08be75d)
diffstat:
src/action.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 05510540bef0 -r 84f17beb09d1 src/action.js
--- a/src/action.js Thu Sep 02 23:30:57 2021 +0200
+++ b/src/action.js Thu Sep 02 23:57:43 2021 +0200
@@ -161,7 +161,7 @@
var keyact = {};
for (var i in actions) {
var action = actions[i];
- keyact[action.name.replace(/_/g, '')] = action;
+ keyact[action.name.split(' / ').pop()] = action;
}
var prm = Sao.common.selection(
Sao.i18n.gettext('Select your action'),