Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BRP-71 - Fixed the way we handle field truncation #722

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

MCrawleyHomeOffice
Copy link
Contributor

What?
There is a bug in the birth-place truncation logic whereby the max 16 characters is ignored and instead it always shows as if the max length is 30 characters. We have fixed this by introducing a new property called "max" which we pass all the way down to the template, and we have adjusted the template to show the new field.

Why?
Without this we would have been unable to display the correct error message

How?
Added a new max property to the session, added an extra paragraph in the error message object and adjusted the template accordingly.

Testing?
Tested locally

Screenshots (optional)
Anything Else?

@al01010
Copy link

al01010 commented May 13, 2022

Looks good to me

@MCrawleyHomeOffice MCrawleyHomeOffice changed the title Added max property and used in truncate template BRP-71 - Fixed the way we handle field truncation May 30, 2022
@MCrawleyHomeOffice MCrawleyHomeOffice force-pushed the BRP-71-Birth-Place-Truncation branch from d17a8ba to 0711341 Compare August 17, 2022 11:00
@MCrawleyHomeOffice MCrawleyHomeOffice force-pushed the BRP-71-Birth-Place-Truncation branch from 22491de to 383eff2 Compare January 23, 2023 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants