Commit a858b910 authored by s7_spruge_k's avatar s7_spruge_k
Browse files

fixed redirection bug with calendar

parent e6270fc5
...@@ -71,7 +71,7 @@ public class CalendarController { ...@@ -71,7 +71,7 @@ public class CalendarController {
//If user doesnt have calendar - redirected to create //If user doesnt have calendar - redirected to create
try try
{ {
calendarRepo.findByNameAndUser(currUser.getActiveCalendar(), currUser); calendarRepo.findAllByUser(currUser).get(0);
} }
catch(Exception e) catch(Exception e)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment