Skip to content

Commit

Permalink
Merge pull request #249 from hemma/master
Browse files Browse the repository at this point in the history
fixed bug inFormCreator (htmlformcreator), nullpointerexception
  • Loading branch information
rrayst authored Oct 2, 2020
2 parents def6b60 + e60fb75 commit fa8fa59
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class FormCreator extends AbstractSchemaCreator <FormCreatorContext>{
} else if(res.minLengthFacet) {
ctx.attrs['label'] = "Should be at least ${res.minLengthFacet.value} characters."
} else if(res.maxLengthFacet){
ctx.attrs['label'] = "Should have at most ${res.minLengthFacet.value} characters."
ctx.attrs['label'] = "Should have at most ${res.maxLengthFacet.value} characters."
}
if(ctx.element) {
writeInputField(ctx.element , ctx)
Expand All @@ -209,7 +209,7 @@ class FormCreator extends AbstractSchemaCreator <FormCreatorContext>{
} else if(res.minLengthFacet) {
ctx.attrs['label'] = "Should be at least ${res.minLengthFacet.value} characters."
} else if(res.maxLengthFacet){
ctx.attrs['label'] = "Should have at most ${res.minLengthFacet.value} characters."
ctx.attrs['label'] = "Should have at most ${res.maxLengthFacet.value} characters."
}
//@todo Patternfacet, maxInclusive, lengthFacet must be implemented!
if(ctx.element) {
Expand Down

0 comments on commit fa8fa59

Please sign in to comment.