From b72bb6ec1cb5636c69d7c6f1680d358f28803b90 Mon Sep 17 00:00:00 2001
From: Pawel Kaczmarek
Date: Tue, 24 Mar 2015 10:51:44 +0100
Subject: [PATCH] [Notification] Fix remove - invalid id
[Verification]
TCT NotificationManager_remove_id_invalid should pass
Change-Id: Id8f747020533cb3e651a5dc6e63ea2b604f2a69f
Signed-off-by: Pawel Kaczmarek
---
src/notification/notification_api.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/notification/notification_api.js b/src/notification/notification_api.js
index afdac6d9..c3416af4 100644
--- a/src/notification/notification_api.js
+++ b/src/notification/notification_api.js
@@ -94,7 +94,7 @@ NotificationManager.prototype.remove = function(id) {
{name: 'id', type: types_.STRING}
]);
- if (!arguments.length) {
+ if (!arguments.length || !(parseInt(arguments[0]) > 0)) {
throw new WebAPIException(WebAPIException.NOT_FOUND_ERR);
}
--
2.34.1