From: Pawel Kaczmarek Date: Tue, 24 Mar 2015 08:16:02 +0000 (+0100) Subject: [Notification] Fix TCT update - not posted notification X-Git-Tag: submit/tizen_tv/20150603.064601~1^2~253 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e78e8acf9eb3aff3d3444904494f467d102fbded;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Notification] Fix TCT update - not posted notification [Verification] TCT NotificationManager_update_notposted - should pass Change-Id: I4c7bf53fdce8077939d0330a062b9a0bf1d93dd8 Signed-off-by: Pawel Kaczmarek --- diff --git a/src/notification/notification_api.js b/src/notification/notification_api.js index 3e3b53cd..afdac6d9 100644 --- a/src/notification/notification_api.js +++ b/src/notification/notification_api.js @@ -73,6 +73,9 @@ NotificationManager.prototype.update = function(notification) { if (!arguments.length) { throw new WebAPIException(WebAPIException.NOT_FOUND_ERR); } + if (!args.notification.id) { + throw new WebAPIException(WebAPIException.UNKNOWN_ERR); + } var data = { notification: args.notification