+ Add desc field for create project api.

This commit is contained in:
songchenxuan
2023-12-08 12:18:24 +08:00
parent 09f7ce29dc
commit da87886088
+1 -1
View File
@@ -75,7 +75,7 @@ class projectsEntry extends entry
*/
public function post()
{
$fields = 'name,begin,end,products,hasProduct';
$fields = 'name,begin,end,products,desc,hasProduct';
$this->batchSetPost($fields);
if(isset($_POST['products']) and !isset($_POST['hasProduct'])) $_POST['hasProduct'] = true;