Skip to content

Commit

Permalink
Merge pull request #1131 from UniversityRadioYork/patches-23-10-06
Browse files Browse the repository at this point in the history
Patches 23 10 06
  • Loading branch information
JP5457 committed Oct 6, 2023
2 parents 620534a + 00739ec commit 660d48b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Classes/ServiceAPI/MyRadio_Season.php
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ public function schedule($params, $num_weeks)
/*
* Since terms start on the Monday, we just +1 day to it
*/
$start_day = MyRadio_Term::getTermStartDate() + ($req_time['day'] * 86400);
$start_day = (MyRadio_Term::getActiveApplicationTerm())->getTermStartDate() + ($req_time['day'] * 86400);

//Now it's time to BEGIN to COMMIT!
self::$db->query('BEGIN');
Expand Down
1 change: 1 addition & 0 deletions src/Classes/ServiceAPI/MyRadio_Term.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public static function getAllTerms($currentOnly = false)
*/
public static function isTerm()
{
return true;
return (!empty(self::getAllTerms(true)));
}

Expand Down
3 changes: 3 additions & 0 deletions src/Controllers/Profile/assignOfficer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
if (isset($_REQUEST['officerid'])) {
//assign form
$officer = MyRadio_Officer::getInstance($_REQUEST['officerid']);
if ($officer->getStatus() == "h") {
throw new MyRadioException("Officer is historical.", 400);
}

MyRadio_Officer::getAssignForm()
->editMode(
Expand Down
5 changes: 5 additions & 0 deletions src/Menus/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@
"url": "module=Mail,action=send,list=30",
"description": "Having a problem? Report it here and Computing and/or Engineering team will fix it for you. Or at least try."
},
{
"title": "Request Songs",
"url": "https://song-requests.ury.org.uk/",
"description": "Want to play a song that we don't have? Request it here and we can buy it!"
},
{
"title": "Request Songs",
"url": "https://song-requests.ury.org.uk/",
Expand Down

0 comments on commit 660d48b

Please sign in to comment.