Skip to content

Commit

Permalink
Merge branch 'master' into snyk-upgrade-0d807b69503038ae9273fa6674a8877f
Browse files Browse the repository at this point in the history
  • Loading branch information
DawoudIO authored Jan 2, 2023
2 parents a7055b9 + 5ed4e37 commit 51361c0
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion cypress/support/ui-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Cypress.Commands.add("loginAdmin", (location, checkMatchingLocation = true) => {
});

Cypress.Commands.add("loginStandard", (location, checkMatchingLocation = true) => {
cy.login("[email protected]", "abc123", location, checkMatchingLocation);
cy.login("[email protected]", "basicjoe", location, checkMatchingLocation);
});

Cypress.Commands.add("login", (username, password, location, checkMatchingLocation = true) => {
Expand Down
26 changes: 13 additions & 13 deletions demo/ChurchCRM-Database.sql

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docker/cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"projectId": "n4qnyb",
"env": {
"admin.api.key": "ajGwpy8Pdai22XDUpqjC5Ob04v0eG7EGgb4vz2bD2juT8YDmfM",
"user.api.key": "cjcPihn8wDwVeRIiNnKfpj0HGgCYbcxaD9SaF6BNJKLtVrnGFr"
"user.api.key": "JZJApQ9XOnF7nvupWZlTWBRrqMtHE9eNcWBTUzEWGqL4Sdqp6C"
}
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "churchcrm",
"version": "4.5.2",
"version": "4.5.3",
"description": "Free Church CRM Software",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/BackupDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<li><?= gettext('If you are concerned about confidentiality of data stored in the ChurchCRM database, you should encrypt the backup data if it will be stored somewhere potentially accessible to others') ?></li><br>
</ul>
<BR><BR>
<form method="post" action="<?= sRootPath ?>/api/database/backup" id="BackupDatabase">
<form method="post" action="<?= $sRootPath ?>/api/database/backup" id="BackupDatabase">
<?= gettext('Select archive type') ?>:
<input type="radio" name="archiveType" value="2" checked><?= gettext('Database Only (.sql)') ?>
<input type="radio" name="archiveType" value="3" checked><?= gettext('Database and Photos (.tar.gz)') ?>
Expand Down
3 changes: 1 addition & 2 deletions src/EventNames.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@
$cSQL = "SELECT evctnm_countid, evctnm_countname FROM eventcountnames_evctnm WHERE evctnm_eventtypeid='$aTypeID[$row]' ORDER BY evctnm_countid";
$cOpps = RunQuery($cSQL);
$numCounts = mysqli_num_rows($cOpps);
$cCountName = '';
if ($numCounts) {
$cCountName = '';
$cCountName = [];
for ($c = 1; $c <= $numCounts; $c++) {
$cRow = mysqli_fetch_array($cOpps, MYSQLI_BOTH);
extract($cRow);
Expand Down
2 changes: 1 addition & 1 deletion src/PersonView.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@
</tr>
</thead>
<tbody>
<?php foreach ($person->getFamily()->getPeople() as $familyMember) {
<?php foreach ($person->getFamily()->getPeopleSorted() as $familyMember) {
$tmpPersonId = $familyMember->getId(); ?>
<tr>
<td>
Expand Down
2 changes: 1 addition & 1 deletion src/RestoreDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<p><?= gettext('CAUTION: This will completely erase the existing database, and replace it with the backup') ?></p>
<p><?= gettext('If you upload a backup from ChurchInfo, or a previous version of ChurchCRM, it will be automatically upgraded to the current database schema') ?></p>
<p><?= gettext("Maximum upload size")?>: <span class="maxUploadSize"></span></p>
<form id="restoredatabase" action="<?= sRootPath ?>/api/database/restore" method="POST"
<form id="restoredatabase" action="<?= $sRootPath ?>/api/database/restore" method="POST"
enctype="multipart/form-data">
<input type="file" name="restoreFile" id="restoreFile" multiple=""><br>
<label for="restorePassword"><?= gettext("Password (if any)") ?>:</label>
Expand Down
2 changes: 1 addition & 1 deletion src/api/routes/people/people-families.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
foreach ($families as $family) {
if (empty($family->getEmail())) {
$hasEmail = false;
foreach ($family->getPeople() as $person) {
foreach ($family->getPeopleSorted() as $person) {
if (!empty($person->getEmail() || !empty($person->getWorkEmail()))) {
$hasEmail = true;
break;
Expand Down
2 changes: 1 addition & 1 deletion src/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "churchcrm/crm",
"version": "4.5.2",
"version": "4.5.3",
"type": "project",
"keywords": [
"church",
Expand Down
5 changes: 3 additions & 2 deletions src/mysql/upgrade.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,10 @@
"current": {
"versions": [
"4.5.0",
"4.5.1"
"4.5.1",
"4.5.2"
],
"scripts": [],
"dbVersion": "4.5.2"
"dbVersion": "4.5.3"
}
}
2 changes: 1 addition & 1 deletion src/v2/templates/people/family-view.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class="fa fa-minus"></i>
</div>
</div>
<div class="card-body row row-flex row-flex-wrap">
<?php foreach ($family->getPeople() as $person) { ?>
<?php foreach ($family->getPeopleSorted() as $person) { ?>
<div class="col-sm-6">
<div class="card card-primary">
<div class="card-body box-profile">
Expand Down

0 comments on commit 51361c0

Please sign in to comment.