Issue 267: Value of custom validation is not being used consistently in validation framework
Status:  Fixed
Owner:
Closed:  Jun 2010
Project Member Reported by sidda...@gmail.com, Jun 12, 2010
addCustomWorksheetValidation(new WorksheetValidation("myCustomValidation", "validateLastName").setErrorMessage("foo is not valid"));

produces the following javascript which is wrong and gives javascript error.
jQuery.validator.addMethod('myCustomValidation', myCustomValidation);

The correct javascript should be
jQuery.validator.addMethod('myCustomValidation', validateLastName);


WORKAROUND:
Keep the name of validation same as its value. e.g.

addCustomWorksheetValidation(new WorksheetValidation("validateLastName", "validateLastName").setErrorMessage("foo is not valid"));
Jun 21, 2010
Project Member #2 sidda...@gmail.com
Fixed in revision 2509.