From 8c8412bb54b23fb080de0e4ccf5ba2d5a1495897 Mon Sep 17 00:00:00 2001 From: Daniel Gerhardt <daniel.gerhardt@mni.thm.de> Date: Wed, 16 Jul 2014 23:49:16 +0200 Subject: [PATCH] Disabled broken LMS code which is not working because of a missing view --- .../java/de/thm/arsnova/services/SessionService.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/thm/arsnova/services/SessionService.java b/src/main/java/de/thm/arsnova/services/SessionService.java index 91e39e99..65d45430 100644 --- a/src/main/java/de/thm/arsnova/services/SessionService.java +++ b/src/main/java/de/thm/arsnova/services/SessionService.java @@ -130,11 +130,13 @@ public class SessionService implements ISessionService { @Override public final List<Session> getMySessions(final User user) { List<Session> mySessions = databaseDao.getMySessions(user); - if (connectorClient == null) { + if (true /*connectorClient == null*/) { return mySessions; } - List<Session> courseSessions = databaseDao.getCourseSessions( + /* FIXME: Database view is missing (setuptool) so code below has been disabled */ + + final List<Session> courseSessions = databaseDao.getCourseSessions( connectorClient.getCourses(user.getUsername()).getCourse() ); @@ -221,6 +223,11 @@ public class SessionService implements ISessionService { @Override public int countSessions(List<Course> courses) { + if (true) { + /* FIXME: Database view is missing (setuptool) so code below has been disabled */ + return 0; + } + List<Session> sessions = databaseDao.getCourseSessions(courses); if (sessions == null) { return 0; -- GitLab