diff --git a/etemplate/js/et2_extension_nextmatch_actions.js b/etemplate/js/et2_extension_nextmatch_actions.js index 7a479d5b31..92b019eb16 100644 --- a/etemplate/js/et2_extension_nextmatch_actions.js +++ b/etemplate/js/et2_extension_nextmatch_actions.js @@ -123,11 +123,22 @@ function nm_action(_action, _senders, _target, _ids) } else { - // Discard - params.shift(params[2]); + // Discard , special handling when from=merge is involved + if(params.length>1 && params[0]=='' && params[1].indexOf('from=merge')!=-1) + { + params.shift(); + } + else + { + params.shift(params[2]); + } } } - + //special handling when from=merge is involved + if(params.length>1 && params[0]=='' && params[1].indexOf('from=merge')!=-1) + { + params.shift(); + } // Re-join, in case extra has a - var extra = params.join('-'); egw(app,window).open(egw_open_id,app,type,extra,target);