This commit is contained in:
sunguangming
2022-10-11 14:14:08 +08:00
parent 7567930c6c
commit be849b6af8
+8 -1
View File
@@ -925,7 +925,14 @@ class programplanModel extends model
$spec->end = $data->end;
$this->dao->insert(TABLE_PROJECTSPEC)->data($spec)->exec();
$this->action->create('execution', $stageID, 'opened', '', join(',', $_POST['products']));
if($project->hasProduct)
{
$this->action->create('execution', $stageID, 'opened', '', join(',', $_POST['products']));
}
else
{
$this->action->create('execution', $stageID, 'opened');
}
}
}