Skip to content

Commit

Permalink
Not all countries have Zip codes or equivalent (#7064)
Browse files Browse the repository at this point in the history
# Description & Issue number it closes 
<!-- Please include a summary of the changes and the related issue.
Please also include relevant motivation and context. -->

Not all countries have Zip codes or equivalent, so we can't force it as
a requirement.

Related to #7032

## Screenshots (if appropriate)
<!-- Before and after --> 

None.

## How to test the changes?

Manual testing.

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

# How Has This Been Tested?

<!-- Please describe the tests that you ran to verify your changes.
Provide instructions so we can reproduce. Please also list any relevant
details for your test configuration -->

Manual testing..

# Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules
  • Loading branch information
DAcodedBEAT committed Jun 6, 2024
2 parents b977b52 + c034773 commit 1c26101
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/external/templates/registration/family-register.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@
use ChurchCRM\dto\SystemConfig;
use ChurchCRM\dto\SystemURLs;

// Set the page title and include HTML header
$sPageTitle = gettext("Family Registration");
require(SystemURLs::getDocumentRoot() . "/Include/HeaderNotLoggedIn.php");


$headerHTML = '<b>Church</b>CRM';
$sHeader = SystemConfig::getValue("sHeader");
$sChurchName = SystemConfig::getValue("sChurchName");

if (!empty($sHeader)) {
$headerHTML = html_entity_decode($sHeader, ENT_QUOTES);
} else if (!empty($sChurchName)) {
} elseif (!empty($sChurchName)) {
$headerHTML = $sChurchName;
}

Expand Down Expand Up @@ -59,7 +58,7 @@
<div class="form-group has-feedback">
<div class="row">
<div class="col-lg-3">
<input id="familyZip" name="familyZip" class="form-control" placeholder="<?= gettext('Zip') ?>" required value="<?= SystemConfig::getValue('sDefaultZip') ?>">
<input id="familyZip" name="familyZip" class="form-control" placeholder="<?= gettext('Zip') ?>" value="<?= SystemConfig::getValue('sDefaultZip') ?>">
</div>
<div class="col-lg-9">
<select id="familyCountry" name="familyCountry" class="form-control select2" data-system-default="<?= SystemConfig::getValue('sDefaultCountry')?>">
Expand Down

0 comments on commit 1c26101

Please sign in to comment.