From c73d589b54f1454826396138cb5ef6583a2a9368 Mon Sep 17 00:00:00 2001 From: lanzongjun Date: Thu, 8 Dec 2022 16:28:38 +0800 Subject: [PATCH] * Finish Bug #30664 --- module/build/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/build/model.php b/module/build/model.php index 8e6d83c85b..b13c40eead 100644 --- a/module/build/model.php +++ b/module/build/model.php @@ -457,7 +457,7 @@ class buildModel extends model ->get(); $product = $this->loadModel('product')->getByID($build->product); - if(!empty($productgetBuildPairs) and $product->type != 'normal' and $this->post->isIntegrated == 'no' and !isset($_POST['branch'])) + if(!empty($product) and $product->type != 'normal' and !isset($_POST['branch'])) { $this->lang->product->branch = sprintf($this->lang->product->branch, $this->lang->product->branchName[$product->type]); dao::$errors['branch'] = sprintf($this->lang->error->notempty, $this->lang->product->branch);