* Add hasProduct field for create a project.

This commit is contained in:
songchenxuan
2023-12-06 11:21:16 +08:00
parent ba39b2ad3b
commit 0c3a8a7ef1
+2 -2
View File
@@ -75,9 +75,9 @@ class projectsEntry extends entry
*/
public function post()
{
$fields = 'name,begin,end,products';
$fields = 'name,begin,end,products,hasProduct';
$this->batchSetPost($fields);
if(isset($_POST['products'])) $_POST['hasProduct'] = true;
if(isset($_POST['products']) and !isset($_POST['hasProduct'])) $_POST['hasProduct'] = true;
$useCode = $this->checkCodeUsed();