From 793a0a6772ac4e85fed2e828c069176c5ab02758 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 18 Dec 2014 23:28:19 -0500 Subject: [PATCH] fix mark topic notifications read on enter --- src/user/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user/notifications.js b/src/user/notifications.js index 7be91bf168..6e65d37649 100644 --- a/src/user/notifications.js +++ b/src/user/notifications.js @@ -223,7 +223,7 @@ var async = require('async'), value = value ? value.toString() : ''; nids = notifications.filter(function(notification) { - return notification && notification[field] === value; + return notification && notification[field] && notification[field].toString() === value; }).map(function(notification) { return notification.nid; });