Fixes #1942 CActiveForm client validation
Merge pull request #1946 from mdomba/1942-CActiveForm-clientvalidation

Fixes #1942 CActiveForm client validation
[ci skip]