* Fix bug#18270.

This commit is contained in:
xieqiyu
2022-03-30 20:22:17 +08:00
parent c7e76c1176
commit af7f9bd8e3
-7
View File
@@ -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;