Skip to content

Commit

Permalink
Merge branch 'release-v1.3.4' of github.com:opencrvs/opencrvs-farajal…
Browse files Browse the repository at this point in the history
…and into release-v1.4.1
  • Loading branch information
rikukissa committed Mar 5, 2024
2 parents 10087d1 + e75aea2 commit faf5c8d
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 14 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ In the next OpenCRVS release v1.5.0, there will be two significant changes:

See [Releases](https://github.com/opencrvs/opencrvs-farajaland/releases) for release notes of older releases.

## [1.3.3](https://github.com/opencrvs/opencrvs-farajaland/compare/v1.3.2...v1.3.3) (TBD)
## [1.3.3](https://github.com/opencrvs/opencrvs-farajaland/compare/v1.3.2...v1.3.3)

### Breaking changes

Expand Down Expand Up @@ -117,4 +117,14 @@ See [Releases](https://github.com/opencrvs/opencrvs-farajaland/releases) for rel

### Bug fixes

## [1.3.4](https://github.com/opencrvs/opencrvs-farajaland/compare/v1.3.3...v1.3.4) (TBD)

## Breaking changes

## New features

## Bug fixes

- Fix typo in certificate handlebar names

See [Releases](https://github.com/opencrvs/opencrvs-farajaland/releases) for release notes of older releases.
1 change: 1 addition & 0 deletions src/api/content/client/descriptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,7 @@
"home.header.placeHolderBrnDrn": "Search menu brn drn place holder",
"home.header.placeHolderPhone": "Search menu phone no place holder",
"home.header.placeHolderNationalId": "Search menu national ID place holder",
"home.header.placeHolderId": "Search menu ID place holder",
"home.header.placeHolderEmail": "Search menu email place holder",
"home.header.systemTitle": "System title",
"home.header.settingsTitle": "settings title",
Expand Down
6 changes: 3 additions & 3 deletions src/form/birth/certificate-handlebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const certificateHandlebars = {
informantNationality: 'informantNationality',
informantNationalId: 'informantNationalId',
informantPassport: 'informantPassport',
informantAliedId: 'informantAliedId',
informantAlienId: 'informantAlienId',
informantRefugeeId: 'informantRefugeeId',
motherReasonNotApplying: 'motherReasonNotApplying',
motherBirthDate: 'motherBirthDate',
Expand All @@ -76,7 +76,7 @@ export const certificateHandlebars = {
motherNationality: 'motherNationality',
motherNationalId: 'motherNationalId',
motherPassport: 'motherPassport',
motherAliedId: 'motherAliedId',
motherAlienId: 'motherAlienId',
motherRefugeeId: 'motherRefugeeId',
motherMaritalStatus: 'motherMaritalStatus',
motherOccupation: 'motherOccupation',
Expand All @@ -87,7 +87,7 @@ export const certificateHandlebars = {
fatherNationality: 'fatherNationality',
fatherNationalId: 'fatherNationalId',
fatherPassport: 'fatherPassport',
fatherAliedId: 'fatherAliedId',
fatherAlienId: 'fatherAlienId',
fatherRefugeeId: 'fatherRefugeeId',
fatherMaritalStatus: 'fatherMaritalStatus',
fatherOccupation: 'fatherOccupation',
Expand Down
4 changes: 2 additions & 2 deletions src/form/custom-fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export function getReasonForLateRegistration(
}
const expression: string =
event === 'birth'
? 'const pattern = /^\\d{4}-\\d{2}-\\d{2}$/; const today = new Date(); const eventDatePlusLateRegistrationTarget = new Date(values.childBirthDate); const lateRegistrationTarget = offlineCountryConfig && offlineCountryConfig.config.BIRTH.LATE_REGISTRATION_TARGET; eventDatePlusLateRegistrationTarget.setDate(eventDatePlusLateRegistrationTarget.getDate() + lateRegistrationTarget); !pattern.test(values.childBirthDate) || today < eventDatePlusLateRegistrationTarget;'
: 'const pattern = /^\\d{4}-\\d{2}-\\d{2}$/; const today = new Date(); const eventDatePlusLateRegistrationTarget = new Date(values.deathDate); const lateRegistrationTarget = offlineCountryConfig && offlineCountryConfig.config.DEATH.REGISTRATION_TARGET; eventDatePlusLateRegistrationTarget.setDate(eventDatePlusLateRegistrationTarget.getDate() + lateRegistrationTarget); !pattern.test(values.deathDate) || today < eventDatePlusLateRegistrationTarget;'
? 'const pattern = /^\\d{4}-\\d{1,2}-\\d{1,2}$/; const today = new Date(); const eventDatePlusLateRegistrationTarget = new Date(values.childBirthDate); const lateRegistrationTarget = offlineCountryConfig && offlineCountryConfig.config.BIRTH.LATE_REGISTRATION_TARGET; eventDatePlusLateRegistrationTarget.setDate(eventDatePlusLateRegistrationTarget.getDate() + lateRegistrationTarget); !pattern.test(values.childBirthDate) || today < eventDatePlusLateRegistrationTarget;'
: 'const pattern = /^\\d{4}-\\d{1,2}-\\d{1,2}$/; const today = new Date(); const eventDatePlusLateRegistrationTarget = new Date(values.deathDate); const lateRegistrationTarget = offlineCountryConfig && offlineCountryConfig.config.DEATH.REGISTRATION_TARGET; eventDatePlusLateRegistrationTarget.setDate(eventDatePlusLateRegistrationTarget.getDate() + lateRegistrationTarget); !pattern.test(values.deathDate) || today < eventDatePlusLateRegistrationTarget;'

return {
name: fieldName,
Expand Down
10 changes: 5 additions & 5 deletions src/form/death/certficate-handlebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const certificateHandlebars = {
deceasedNationality: 'deceasedNationality',
deceasedNationalId: 'deceasedNationalId',
deceasedPassport: 'deceasedPassport',
deceasedAliedId: 'deceasedAliedId',
deceasedAlienId: 'deceasedAlienId',
deceasedRefugeeId: 'deceasedRefugeeId',
deceasedMaritalStatus: 'deceasedMaritalStatus',
countryPrimaryDeceased: 'countryPrimaryDeceased',
Expand Down Expand Up @@ -99,7 +99,7 @@ export const certificateHandlebars = {
informantNationality: 'informantNationality',
informantNationalId: 'informantNationalId',
informantPassport: 'informantPassport',
informantAliedId: 'informantAliedId',
informantAlienId: 'informantAlienId',
informantRefugeeId: 'informantRefugeeId',
countryPrimaryInformant: 'countryPrimaryInformant',
statePrimaryInformant: 'statePrimaryInformant', // @deprecated use statePrimaryInformantId instead
Expand Down Expand Up @@ -135,7 +135,7 @@ export const certificateHandlebars = {
spouseNationality: 'spouseNationality',
spouseNationalId: 'spouseNationalId',
spousePassport: 'spousePassport',
spouseAliedId: 'spouseAliedId',
spouseAlienId: 'spouseAlienId',
spouseRefugeeId: 'spouseRefugeeId',
spouseOccupation: 'spouseOccupation',
spouseEducationalAttainment: 'spouseEducationalAttainment',
Expand Down Expand Up @@ -167,7 +167,7 @@ export const certificateHandlebars = {
motherNationality: 'motherNationality',
motherNationalId: 'motherNationalId',
motherPassport: 'motherPassport',
motherAliedId: 'motherAliedId',
motherAlienId: 'motherAlienId',
motherRefugeeId: 'motherRefugeeId',
motherMaritalStatus: 'motherMaritalStatus',
motherOccupation: 'motherOccupation',
Expand All @@ -178,7 +178,7 @@ export const certificateHandlebars = {
fatherNationality: 'fatherNationality',
fatherNationalId: 'fatherNationalId',
fatherPassport: 'fatherPassport',
fatherAliedId: 'fatherAliedId',
fatherAlienId: 'fatherAlienId',
fatherRefugeeId: 'fatherRefugeeId',
fatherMaritalStatus: 'fatherMaritalStatus',
fatherOccupation: 'fatherOccupation',
Expand Down
6 changes: 3 additions & 3 deletions src/form/marriage/certificate-handlebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const certificateHandlebars = {
informantNationality: 'informantNationality',
informantNationalId: 'informantNationalId',
informantPassport: 'informantPassport',
informantAliedId: 'informantAliedId',
informantAlienId: 'informantAlienId',
informantRefugeeId: 'informantRefugeeId',
countryPrimaryInformant: 'countryPrimaryInformant',
statePrimaryInformant: 'statePrimaryInformant', // @deprecated use statePrimaryInformantId instead
Expand Down Expand Up @@ -71,7 +71,7 @@ export const certificateHandlebars = {
groomNationality: 'groomNationality',
groomNationalId: 'groomNationalId',
groomPassport: 'groomPassport',
groomAliedId: 'groomAliedId',
groomAlienId: 'groomAlienId',
groomRefugeeId: 'groomRefugeeId',
groomMarriedLastNameEng: 'groomMarriedLastNameEng',
countryPrimaryGroom: 'countryPrimaryGroom',
Expand Down Expand Up @@ -101,7 +101,7 @@ export const certificateHandlebars = {
brideNationality: 'brideNationality',
brideNationalId: 'brideNationalId',
bridePassport: 'bridePassport',
brideAliedId: 'brideAliedId',
brideAlienId: 'brideAlienId',
brideRefugeeId: 'brideRefugeeId',
brideMarriedLastNameEng: 'brideMarriedLastNameEng',
countryPrimaryBride: 'countryPrimaryBride',
Expand Down

0 comments on commit faf5c8d

Please sign in to comment.