* Optimize the method getPairs of the product module.

This commit is contained in:
liugang
2022-09-21 11:10:34 +08:00
parent 506390963b
commit 11f0ca4453
4 changed files with 44 additions and 37 deletions
+1 -2
View File
@@ -102,8 +102,7 @@ class tree extends control
if($viewType == 'story')
{
/* Set menu.*/
$lib = $this->product->getById($rootID);
$products = $this->product->getPairs($mode = '', $programID = 0, $append = '', !empty($lib->shadow));
$products = $this->product->getPairs($mode = '', $programID = 0, $append = '', 'all');
$this->product->saveState($rootID, $products);
unset($products[$rootID]);