Author Topic: Required fileds when creating milestones  (Read 1805 times)

kils

  • Freshman
  • *
  • Posts: 42
    • View Profile
Required fileds when creating milestones
« on: June 18, 2014, 02:48:23 am »
When i create milestone i see that due date is required field, but when i click save button i see error with milestone name only and if i leave due date field is blank my milestone will be succesfully created

i fined this code in \application\models\project_milestones\ProjectMilestone.class.php
Code: [Select]
function validate(&$errors) {
if(!$this->getObject()->validatePresenceOf('name')) $errors[] = lang('milestone name required');
if(!$this->validatePresenceOf('due_date')) $errors[] = lang('milestone due date required');
} // validate

maybe this option can be activated in admininstration panel?

kils

  • Freshman
  • *
  • Posts: 42
    • View Profile
Re: Required fileds when creating milestones
« Reply #1 on: June 19, 2014, 04:18:01 am »
oh i see that bug only in date fields