Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Mastery Transcript/CHANGEDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,8 @@
++$count;
$sql[$count][0] = '1.6.00';
$sql[$count][1] = "";

//v1.6.01
++$count;
$sql[$count][0] = '1.6.01';
$sql[$count][1] = "";
4 changes: 4 additions & 0 deletions Mastery Transcript/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
CHANGELOG
=========
v1.6.01
-------
Improved checking for error in add journey record page

v1.6.00
-------
Gibbon v28 Compatibility
Expand Down
10 changes: 7 additions & 3 deletions Mastery Transcript/journey_record_add.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

use Gibbon\Http\Url;
use Gibbon\Forms\Form;
use Gibbon\FileUploader;
use Gibbon\Forms\DatabaseFormFactory;
use Gibbon\Domain\Students\StudentGateway;

Expand Down Expand Up @@ -80,8 +79,13 @@
$form->toggleVisibilityByClass('opportunity')->onSelect('type')->when('Opportunity');

$studentGateway = $container->get(StudentGateway::class);
$student = $studentGateway->selectActiveStudentByPerson($session->get('gibbonSchoolYearID'), $session->get('gibbonPersonID'));
$data = array('gibbonYearGroupID' => '%'.$student->fetch()['gibbonYearGroupID'].'%');
$student = $studentGateway->selectActiveStudentByPerson($session->get('gibbonSchoolYearID'), $session->get('gibbonPersonID'))->fetch();
if (empty($student['gibbonYearGroupID'])) {
$page->addError(__('The selected record does not exist, or you do not have access to it.'));
return;
}

$data = array('gibbonYearGroupID' => '%'.$student['gibbonYearGroupID'].'%');
$sql = "SELECT masteryTranscriptOpportunityID AS value, masteryTranscriptOpportunity.name FROM masteryTranscriptOpportunity WHERE masteryTranscriptOpportunity.active='Y' AND gibbonYearGroupIDList LIKE :gibbonYearGroupID ORDER BY masteryTranscriptOpportunity.name";
$row = $form->addRow()->addClass('opportunity');
$row->addLabel('masteryTranscriptOpportunityID', __m('Available Opportunities'))->description(__m('Which opportunity do you want to apply for?'));
Expand Down
2 changes: 1 addition & 1 deletion Mastery Transcript/manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
$entryURL = 'index.php';
$type = 'Additional';
$category = 'Assess';
$version = '1.6.00';
$version = '1.6.01';
$author = "Gibbon Foundation";
$url = "https://gibbonedu.org";

Expand Down
2 changes: 1 addition & 1 deletion Mastery Transcript/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
/**
* Sets version information.
*/
$moduleVersion = '1.6.00';
$moduleVersion = '1.6.01';
$coreVersion = '28.0.00';