Summary
If no minimum provided code doesn't work. Because sometimes minumum value is in js is undefined. Added a check in code.
Steps to reproduce
- Configure a text field to have a "Soft length limit" at any content type.
- Don't set any value at "Soft length minimum"
- Save
- Go to the add node form, type some chars at the configured field.
- The warning message is not displayed and we get a JS error.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | interdiff-3119953-1-3.txt | 420 bytes | mrinalini9 |
| #3 | soft_length_no_min-3119953-3.patch | 1.02 KB | mrinalini9 |
| soft_length_no_min.patch | 479 bytes | arthur.baghdasar |
Comments
Comment #2
ahebrank commentedThanks for the patch. I can replicate; without the patch if min-length is left blank you get a JS error and no counter.
Comment #3
mrinalini9 commentedFixing test groups issue in the above patch, please review.
Comment #4
jlbellidoComment #5
aaron.ferris commentedCan confirm this still occurs on the current 2.x branch, this patch looks and works well.
Comment #7
ahebrank commented