I'm unable to add a validation rule to a comment field as nothing happens when I click the link to add a new rule.

For example, when attempting to add a minimum word validation rule to the field_comment_body field, I click the link "http://www.example.com/admin/structure/types/manage/article/comment/fiel...". The address bar updates to that URL, but the page displayed is still http://www.example.com/admin/structure/types/manage/article/comment/fiel....

I tried setting validation rules on different comment fields and content types. No change.

Comments

g089h515r806’s picture

This is because drupal only support 10 components in Drupal paths, there are 11 components in "admin/structure/types/manage/article/comment/fields/comment_body/validation/add/min_words",

Maybe i could write a helper function used to dispatch the paths in this module.

g089h515r806’s picture

Status: Active » Fixed

I have fixed this issue in latest code. Test it.

Status: Fixed » Closed (fixed)

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