fix mark topic notifications read on enter

This commit is contained in:
barisusakli
2014-12-18 23:28:19 -05:00
parent 2bfc33edb7
commit 793a0a6772

View File

@@ -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;
});