From b7da8b63b379c30bd6c79bf6b1bc45697afb08d3 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Thu, 14 Oct 2021 15:32:06 +0800 Subject: [PATCH] * Code for bug#15513. --- module/product/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/product/model.php b/module/product/model.php index 23439e571a..1a4f78dcae 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -542,7 +542,7 @@ class productModel extends model $line->parent = 0; $line->grade = 1; $line->name = $this->post->lineName; - $line->root = $product->program; + $line->root = $this->config->systemMode == 'new' ? $product->program : 0; $line->order = $maxOrder; $this->dao->insert(TABLE_MODULE)->data($line)->exec();