* Fix bug #60491.
This commit is contained in:
@@ -1544,15 +1544,13 @@ class projectModel extends model
|
||||
/* Child project begin cannot less than parent. */
|
||||
if(!empty($projects[$projectID]->name) and $projects[$projectID]->begin < $parentProject->begin)
|
||||
{
|
||||
dao::$errors['begin'] = sprintf($this->lang->project->beginGreateChild, $parentProject->begin);
|
||||
return false;
|
||||
dao::$errors[] = "ID {$projects[$projectID]->id}" . sprintf($this->lang->project->beginGreateChild, $parentProject->begin);
|
||||
}
|
||||
|
||||
/* When parent set end then child project end cannot greater than parent. */
|
||||
if(!empty($projects[$projectID]->name) and $parentProject->end != '0000-00-00' and $projects[$projectID]->end > $parentProject->end)
|
||||
{
|
||||
dao::$errors['end'] = sprintf($this->lang->project->endLetterChild, $parentProject->end);
|
||||
return false;
|
||||
dao::$errors[] = "ID {$projects[$projectID]->id}" . sprintf($this->lang->project->endLetterChild, $parentProject->end);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user