From af7f9bd8e3a74f6f127de683a5335aa58c0af4e6 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Wed, 30 Mar 2022 20:22:17 +0800 Subject: [PATCH] * Fix bug#18270. --- module/execution/control.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index d4ef2cbb54..5d47dfe10f 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -2549,13 +2549,6 @@ class execution extends control if(!empty($_POST)) { - /* Get executionType and determine whether a product is linked with the stage. */ - $executionType = $this->dao->findById($executionID)->from(TABLE_EXECUTION)->fetch('type'); - if($executionType == 'stage') - { - if(!isset($_POST['products'])) return print(js::alert($this->lang->execution->noLinkProduct) . js::locate($this->createLink('execution', 'manageProducts', "executionID=$executionID&from=$from"))); - } - $oldProducts = $this->product->getProducts($executionID); if($from == 'buildCreate' && $this->session->buildCreate) $browseExecutionLink = $this->session->buildCreate;