Skip to content

Commit

Permalink
Merge pull request #234 from Capping-CPCA/card-bug-fix
Browse files Browse the repository at this point in the history
Bug fixes in edit report card
  • Loading branch information
blackjack26 committed Mar 23, 2018
2 parents 43696a5 + 580d03e commit b6c2a99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/agency-requests/report_card_edit_entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<div class="w-100" style="height: fit-content;">
<?php
// Displays a notification if modification was not successful
if ($errorMsg) {
if (isset($errorMsg)) {
$notification = new Notification("Error", $errorMsg, "danger");
$notification->display();
}
Expand Down Expand Up @@ -133,7 +133,7 @@
<script>
$(function () {
// If the participant is not new, click no on the "is new?" button
<?php if ($isnew == 'f') { ?>
<?php if ($isnew == 't') { ?>
document.getElementById("is-new").click();
<?php } else { ?>
document.getElementById("is-not-new").click();
Expand Down

0 comments on commit b6c2a99

Please sign in to comment.