Skip to content

Commit

Permalink
v3.1.06
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Parker committed Nov 2, 2021
1 parent 759fc31 commit 7b028d9
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 41 deletions.
5 changes: 5 additions & 0 deletions Credentials/CHANGEDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,8 @@
++$count;
$sql[$count][0] = '3.1.05';
$sql[$count][1] = "";

//3.1.06
++$count;
$sql[$count][0] = '3.1.06';
$sql[$count][1] = "";
4 changes: 4 additions & 0 deletions Credentials/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
CHANGELOG
=========
v3.1.06
-------
Removed deprecated function calls

v3.1.05
-------
Final session refactoring
Expand Down
4 changes: 0 additions & 4 deletions Credentials/credentials_student.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@
]);
$page->breadcrumbs->add(Format::name('', $student['preferredName'], $student['surname'], 'Student'));

if (isset($_GET['return'])) {
returnProcess($guid, $_GET['return'], null, null);
}

if ($search != '' or $allStudents != '') {
echo "<div class='linkTop'>";
echo "<a href='".$session->get('absoluteURL')."/index.php?q=/modules/Credentials/credentials.php&search=$search&allStudents=$allStudents'>".__m('Back to Search Results').'</a>';
Expand Down
5 changes: 1 addition & 4 deletions Credentials/credentials_student_add.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,11 @@
);
$page->breadcrumbs->add(__m('Add Credential'));

$returns = array();
$editLink = $_GET['editID'] ?? '';
if ($editLink != '') {
$editLink = $session->get('absoluteURL').'/index.php?q=/modules/Credentials/credentials_student_edit.php&credentialsCredentialID='.$editLink.'&search='.$search.'&allStudents'.$allStudents.'&gibbonPersonID='.$gibbonPersonID;
}
if (isset($_GET['return'])) {
returnProcess($guid, $_GET['return'], $editLink, $returns);
}
$page->return->setEditLink($editLink);

if ($search != '') {
echo "<div class='linkTop'>";
Expand Down
7 changes: 0 additions & 7 deletions Credentials/credentials_student_delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,7 @@
->fromPOST();
$students = $credentialsCredentialGateway->queryStudentBySchoolYear($criteria, $gibbonSchoolYearID, $gibbonPersonID);


if ($students->getResultCount() == 1) {

//Proceed!
if (isset($_GET['return'])) {
returnProcess($guid, $_GET['return'], null, null);
}

//Check if credentialsCredentialID was specified
$credentialsCredentialID = $_GET['credentialsCredentialID'] ?? '';
if ($credentialsCredentialID == '') {
Expand Down
4 changes: 0 additions & 4 deletions Credentials/credentials_student_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@
);
$page->breadcrumbs->add(__m('Edit Credential'));

if (isset($_GET['return'])) {
returnProcess($guid, $_GET['return'], null, null);
}

//Check if credentialsCredentialID specified
$credentialsCredentialID = $_GET['credentialsCredentialID'] ?? '';

Expand Down
2 changes: 1 addition & 1 deletion Credentials/manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$entryURL = 'credentials.php';
$type = 'Additional';
$category = 'Admin';
$version = '3.1.05';
$version = '3.1.06';
$author = 'Ross Parker';
$url = 'http://rossparker.org';

Expand Down
2 changes: 1 addition & 1 deletion Credentials/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
/**
* Sets version information.
*/
$moduleVersion = '3.1.05';
$moduleVersion = '3.1.06';
$coreVersion = '22.0.00';
4 changes: 0 additions & 4 deletions Credentials/websites.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
} else {
$page->breadcrumbs->add(__m('Manage Websites'));

if (isset($_GET['return'])) {
returnProcess($guid, $_GET['return'], null, null);
}

$websiteGateway = $container->get(CredentialsWebsiteGateway::class);
$criteria = $websiteGateway->newQueryCriteria()->sortBy(['title']);
$website = $websiteGateway->queryAllCredentialsWebsite($criteria);
Expand Down
5 changes: 1 addition & 4 deletions Credentials/websites_add.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,11 @@
$page->breadcrumbs->add(__m('Manage Websites'), 'websites.php');
$page->breadcrumbs->add(__m('Add Website'));

$returns = array();
$editLink = $_GET['editID'] ?? '';
if ($editLink != '') {
$editLink = $session->get('absoluteURL').'/index.php?q=/modules/Credentials/websites_edit.php&credentialsWebsiteID='.$_GET['editID'];
}
if (isset($_GET['return'])) {
returnProcess($guid, $_GET['return'], $editLink, $returns);
}
$page->return->setEditLink($editLink);

$form = Form::create('action', $session->get('absoluteURL').'/modules/'.$session->get('module').'/websites_addProcess.php');

Expand Down
5 changes: 0 additions & 5 deletions Credentials/websites_delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
echo __m('You do not have access to this action.');
echo '</div>';
} else {
//Proceed!
if (isset($_GET['return'])) {
returnProcess($guid, $_GET['return'], null, null);
}

$credentialsWebsiteID = $_GET['credentialsWebsiteID'] ?? '';

if ($credentialsWebsiteID == '') {
Expand Down
9 changes: 2 additions & 7 deletions Credentials/websites_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,8 @@
$page->breadcrumbs->add(__m('Manage Websites'), 'websites.php');
$page->breadcrumbs->add(__m('Edit Website'));

$returns = array(
'error3' => __m('Website title should be unique'),
);

if (isset($_GET['return'])) {
returnProcess($guid, $_GET['return'], null, $returns);
}
$returns = ['error3' => __m('Website title should be unique')];
$page->return->addReturns($returns);

//Check if credentialsWebsiteID specified
$credentialsWebsiteID = $_GET['credentialsWebsiteID'] ?? '';
Expand Down

0 comments on commit 7b028d9

Please sign in to comment.