Fix default value of db.

This commit is contained in:
朱金勇
2023-04-10 09:19:01 +00:00
parent 97afbbcef4
commit 0dde8ad3ed
14 changed files with 131 additions and 54 deletions
+4 -2
View File
@@ -745,9 +745,9 @@ class programplanModel extends model
$datas[] = $plan;
}
if(empty($datas))
{
{
dao::$errors['message'][] = sprintf($this->lang->error->notempty, $this->lang->programplan->name);
return false;
}
@@ -969,6 +969,8 @@ class programplanModel extends model
$lib->type = 'execution';
$lib->main = '1';
$lib->acl = 'default';
$lib->addedBy = $this->app->user->account;
$lib->addedDate = helper::now();
$this->dao->insert(TABLE_DOCLIB)->data($lib)->exec();
/* Add creators and PM to stage teams and project teams. */