Skip to content

Commit

Permalink
Fix issue with timetable week state persisting after user switch.
Browse files Browse the repository at this point in the history
  • Loading branch information
shsu committed Oct 28, 2013
1 parent 4f8ad79 commit 6758fdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion a1/src/main/java/ca/bcit/infosys/a1/TimeTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ public String getWeekEnding() {
@PostConstruct
public void initialSetUp() {
populateSampleData();
thisWeek();
}

/**
Expand Down
5 changes: 5 additions & 0 deletions a1/src/main/java/ca/bcit/infosys/a1/UserSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ public class UserSession implements Serializable {
@Inject
private UserManager userManager;

/** The time table. */
@Inject
private TimeTable timeTable;

/** The employee id. */
private int employeeID;

Expand Down Expand Up @@ -134,6 +138,7 @@ public String logIn() {
loggedIn = true;
employeeID = user.getEmployeeID();
superUser = user.isSuperUser();
timeTable.thisWeek();
return "index";
}
}
Expand Down

0 comments on commit 6758fdc

Please sign in to comment.