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.

Comments

arthur.baghdasar created an issue. See original summary.

ahebrank’s picture

Status: Active » Needs review

Thanks for the patch. I can replicate; without the patch if min-length is left blank you get a JS error and no counter.

mrinalini9’s picture

StatusFileSize
new1.02 KB
new420 bytes

Fixing test groups issue in the above patch, please review.

jlbellido’s picture

Issue summary: View changes
aaron.ferris’s picture

Status: Needs review » Reviewed & tested by the community

Can confirm this still occurs on the current 2.x branch, this patch looks and works well.

ahebrank’s picture

Version: 8.x-1.0 » 2.0.x-dev
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.