doubles the notifications number reported in the page (from 30 to 60)
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/notifications@84148 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
353a939e22
commit
4192eed7b1
|
@ -121,7 +121,7 @@ public class NotificationsServiceImpl extends RemoteServiceServlet implements No
|
||||||
public HashMap<Date, ArrayList<Notification>> getUserNotifications() {
|
public HashMap<Date, ArrayList<Notification>> getUserNotifications() {
|
||||||
HashMap<Date, ArrayList<Notification>> toReturn = new HashMap<Date, ArrayList<Notification>>();
|
HashMap<Date, ArrayList<Notification>> toReturn = new HashMap<Date, ArrayList<Notification>>();
|
||||||
try {
|
try {
|
||||||
for (Notification notification : store.getAllNotificationByUser(getASLSession().getUsername(), 30)) {
|
for (Notification notification : store.getAllNotificationByUser(getASLSession().getUsername(), 60)) {
|
||||||
Date dateWithoutTime = removeTimePart(notification.getTime());
|
Date dateWithoutTime = removeTimePart(notification.getTime());
|
||||||
if (! toReturn.containsKey(dateWithoutTime)) {
|
if (! toReturn.containsKey(dateWithoutTime)) {
|
||||||
ArrayList<Notification> nots = new ArrayList<Notification>();
|
ArrayList<Notification> nots = new ArrayList<Notification>();
|
||||||
|
|
Loading…
Reference in New Issue