* [bug#56225,done,1h] Determine if it is a POST request.

This commit is contained in:
hufangzhou
2024-10-18 17:03:50 +08:00
committed by 谢杞钰
parent 6d1fb38efd
commit a204f90c38
+1 -1
View File
@@ -2118,7 +2118,7 @@ class execution extends control
if(!$project->hasProduct) return $this->sendError($this->lang->project->cannotManageProducts, true);
if($project->model == 'waterfall' || $project->model == 'waterfallplus') return $this->sendError(sprintf($this->lang->execution->cannotManageProducts, zget($this->lang->project->modelList, $project->model)), true);
if(!empty($_POST))
if($_SERVER['REQUEST_METHOD'] == 'POST')
{
$oldProducts = $this->loadModel('product')->getProducts($executionID);
$oldProducts = array_keys($oldProducts);