-
Notifications
You must be signed in to change notification settings - Fork 30
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
Form config changes #560
Conversation
if (clientForm == null) { | ||
// Strip anything before the '/' | ||
if (StringUtils.isNotBlank(fileName) && fileName.contains("/")) { | ||
localeFormIdentity = localeFormIdentity.split("/")[1]; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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
Resolves #559