diff --git a/trunk/module/product/control.php b/trunk/module/product/control.php index de40ea5c62..a076c03814 100644 --- a/trunk/module/product/control.php +++ b/trunk/module/product/control.php @@ -78,6 +78,8 @@ class product extends control $this->assign('moduleTree', $this->tree->getTreeMenu($productID, $viewType = 'product', $rooteModuleID = 0, array('treeModel', 'createStoryLink'))); $this->assign('parentModules', $this->tree->getParents($moduleID)); $this->assign('pager', $pager->get()); + $this->assign('recTotal', $pager->recTotal); + $this->assign('recPerPage', $pager->recPerPage); $this->assign('users', $users); $this->assign('orderBy', $orderBy); diff --git a/trunk/module/product/view/browse.html.php b/trunk/module/product/view/browse.html.php index cbe5d42bd4..cfbe21f85d 100644 --- a/trunk/module/product/view/browse.html.php +++ b/trunk/module/product/view/browse.html.php @@ -97,7 +97,7 @@ function selectProduct(productID) global->vars = "productID=$productID&moduleID=$moduleID"; + $app->global->vars = "productID=$productID&moduleID=$moduleID&orderBy=%s&recTotal=$recTotal&recPerPage=$recPerPage"; $app->global->orderBy = $orderBy; function printOrderLink($fieldName) { @@ -111,7 +111,7 @@ function selectProduct(productID) { $orderBy = $fieldName . '|' . 'asc'; } - $link = helper::createLink('product', 'browse', $app->global->vars ."&orderBy=$orderBy"); + $link = helper::createLink('product', 'browse', sprintf($app->global->vars, $orderBy)); echo html::a($link, $lang->story->$fieldName); } ?>