*Finish task #45148.

This commit is contained in:
zhengrunyu
2021-11-30 10:56:09 +08:00
parent e78c876216
commit 46a9f157b1
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -1288,7 +1288,7 @@ class projectModel extends model
dao::$errors['realEnd'] = $this->lang->project->realEndNotEmpty;
return false;
}
if($project->realEnd > $now)
if($project->realEnd > helper::today())
{
dao::$errors['realEnd'] = $this->lang->project->realEndNotFuture;
return false;
@@ -1300,7 +1300,7 @@ class projectModel extends model
->exec();
if(!dao::isError())
{
{
$this->loadModel('score')->create('project', 'close', $oldProject);
return common::createChanges($oldProject, $project);
}