Skip to content

Commit 1cf1dc3

Browse files
committed
Fixes #109. Print view and schedule view now correctly display Sunday
1 parent d97f993 commit 1cf1dc3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

assets/src/modules/sm/Schedule/controllers/ScheduleController.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ angular.module('sm').controller("ScheduleController", function($scope, parsedSch
2323

2424
// Set the correct draw options
2525
for(var key in $scope.state.drawOptions) {
26-
$scope.overrideDrawOptions[key] = parsedSchedule[key] || $scope.state.drawOptions[key];
26+
var overrideValue = parsedSchedule[key];
27+
if(typeof overrideValue === "undefined" || overrideValue === null) {
28+
overrideValue = $scope.state.drawOptions[key];
29+
}
30+
$scope.overrideDrawOptions[key] = overrideValue;
2731
}
2832

2933
// Set image property

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "schedulemaker",
3-
"version": "3.0.24",
3+
"version": "3.0.25",
44
"private": true,
55
"description": "A course database lookup tool and schedule building web application for use at Rochester Institute of Technology.",
66
"main": "index.php",

0 commit comments

Comments
 (0)