sdlins / yii2-at-least-validator

Makes one or more attributes mandatory inside a set of attributes.
Apache License 2.0
28 stars 19 forks source link

lowercase attribute names #6

Closed cshehadi closed 7 years ago

cshehadi commented 8 years ago

For those tables that use field names that are CamelCase - make all attribute names lowercase, to match what Yii does (when the form is generated, form attribute ids will be all lowercase, so this line fails:

var obj = $('#' + formName + '-' + attr);

if attr is not lowercased

sdlins commented 7 years ago

Hi @cshehadi. It seems fine. Thank you!

I really dont use to have CamelCase names for table fields, so this would not be easily perceived by me at all.