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

Form config changes #560

Merged
merged 13 commits into from
Mar 27, 2021
Merged

Form config changes #560

merged 13 commits into from
Mar 27, 2021

Conversation

Rkareko
Copy link
Contributor

@Rkareko Rkareko commented Mar 10, 2021

Resolves #559

if (clientForm == null) {
// Strip anything before the '/'
if (StringUtils.isNotBlank(fileName) && fileName.contains("/")) {
localeFormIdentity = localeFormIdentity.split("/")[1];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might throw and error incase we do not have index 1. It's highly unlikely though

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dubdabasoduba Added a check for this

localeFormIdentity = localeFormIdentity.split("/")[1];
}
//retry with just the filename without the file path prefix
clientForm = clientFormDao.getActiveClientFormByIdentifier(localeFormIdentity);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can put this inside the if block to avoid having 2 ClientFormDao calls if the form is not available and doesn't match the format rule/rule-file-name

ekigamba
ekigamba previously approved these changes Mar 25, 2021
@Rkareko Rkareko merged commit 7031244 into master Mar 27, 2021
@Rkareko Rkareko deleted the 559-form-config-changes branch March 27, 2021 11:43
LZRS added a commit that referenced this pull request Jun 22, 2021
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.

Form config changes.
3 participants