From 79f255412019be0388e237294c5ff0d54b8182ee Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 1 Jul 2014 09:23:29 +0000 Subject: [PATCH] Fix mail "move to folder".Missing start index in substr function --- mail/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail/js/app.js b/mail/js/app.js index 542457a8e5..c3053231c1 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -1612,8 +1612,8 @@ app.classes.mail = AppJS.extend( that.mail_callCopy(_action, _elems,_target, rv); break; default: - if (_action.id.substr(5)=='move') that.mail_callMove(_action, _elems,_target, rv); - if (_action.id.substr(5)=='copy') that.mail_callCopy(_action, _elems,_target, rv); + if (_action.id.substr(0,4)=='move') that.mail_callMove(_action, _elems,_target, rv); + if (_action.id.substr(0,4)=='copy') that.mail_callCopy(_action, _elems,_target, rv); } }, messageToDisplay,