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);