Project

General

Profile

validating date

Added by Zdravko Balorda almost 11 years ago

In my plugin I need to validate a date. I borrowed code from Issue model:

validates :r_date, :date => true

but it just clears the wrongly entered date and saves the record to database.
If I try this with issues start_date, Redmine correctly refuses to save the issue.
Any hint on what else is needed is welcome.

Regards, Zdravko