Skip to content
Snippets Groups Projects
Commit 6eaf5da9 authored by Benjamin Vray's avatar Benjamin Vray
Browse files

[FIX] sms: avoid error when resending sms


avoid a traceback when resending a SMS
It was because arguments of the js function setSmsStatus
were undefined in this case

closes odoo/odoo#36907

Task-id: 2070836
Signed-off-by: default avatarPierre Rousseau (pro) <pro@odoo.com>
parent 2a7796cb
Branches
Tags
No related merge requests found
......@@ -59,7 +59,9 @@ Message.include({
var sms = _.find(self._smsIds, function (sms) {
return sms[0] === smsID;
});
sms[2] = smsStatus;
if (sms !== undefined && smsStatus !== undefined) {
sms[2] = smsStatus;
}
},
//--------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment