Merge branch 'feekback#1865' into 'master'

* Resolved feedback #1865, create project error when chose no sprint type and...

See merge request easycorp/zentaopms!6655
This commit is contained in:
王怡栋
2022-12-30 05:32:15 +00:00
+2 -2
View File
@@ -338,7 +338,7 @@ class executionModel extends model
$multipleProducts = $this->loadModel('product')->getMultiBranchPairs();
foreach($_POST['products'] as $index => $productID)
{
if(isset($multipleProducts[$productID]) and empty($_POST['branch'][$index]))
if(isset($multipleProducts[$productID]) and !isset($_POST['branch'][$index]))
{
dao::$errors[] = $this->lang->project->emptyBranch;
return false;
@@ -534,7 +534,7 @@ class executionModel extends model
$multipleProducts = $this->loadModel('product')->getMultiBranchPairs();
foreach($_POST['products'] as $index => $productID)
{
if(isset($multipleProducts[$productID]) and empty($_POST['branch'][$index]))
if(isset($multipleProducts[$productID]) and !isset($_POST['branch'][$index]))
{
dao::$errors[] = $this->lang->project->emptyBranch;
return false;