From a7da5afcfeb9eb8c404c6c6c14e38ac535de6e29 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Tue, 20 Sep 2022 09:44:22 +0800 Subject: [PATCH] * Code for task #69020. --- module/port/model.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/module/port/model.php b/module/port/model.php index 118b19b2da..eb2dfe5893 100644 --- a/module/port/model.php +++ b/module/port/model.php @@ -191,6 +191,17 @@ class portModel extends model $fieldList = $this->initFieldList($model, $fields); $rows = $this->getRows($model, $fieldList); + if($model == 'story') + { + $product = $this->loadModel('product')->getByID((int)$this->session->storyPortParams['productID']); + if($product and $product->shadow) + { + foreach($rows as $id => $row) + { + $rows[$id]->product = ''; + } + } + } $list = $this->setListValue($model, $fieldList); if($list) foreach($list as $listName => $listValue) $this->post->set($listName, $listValue);