From fa6076a51ef2a0f32b3cd7934fb5e5de56d9a67e Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Fri, 2 Apr 2021 16:54:53 +0800 Subject: [PATCH] * Fix sort story list error. --- module/common/model.php | 2 +- module/story/control.php | 1 + module/story/view/zerocase.html.php | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/module/common/model.php b/module/common/model.php index 8140970169..ea506919c1 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -1003,7 +1003,7 @@ class commonModel extends model $className = 'header'; } $link = helper::createLink($module, $method, sprintf($vars, $orderBy)); - echo $isMobile ? html::a($link, $label, '', "class='$className'") : html::a($link, $label, '', "class='$className'"); + echo $isMobile ? html::a($link, $label, '', "class='$className' data-app={$app->openApp}") : html::a($link, $label, '', "class='$className' data-app={$app->openApp}"); } /** diff --git a/module/story/control.php b/module/story/control.php index fb5e7e3306..55c1e5eac7 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -1524,6 +1524,7 @@ class story extends control $this->view->stories = $this->story->getZeroCase($productID, $branchID, $sort); $this->view->users = $this->user->getPairs('noletter'); $this->view->productID = $productID; + $this->view->branchID = $branchID; $this->view->orderBy = $orderBy; $this->view->suiteList = $this->loadModel('testsuite')->getSuites($productID); $this->view->browseType = ''; diff --git a/module/story/view/zerocase.html.php b/module/story/view/zerocase.html.php index 3e1d3ac7fc..cb0afb7d3b 100644 --- a/module/story/view/zerocase.html.php +++ b/module/story/view/zerocase.html.php @@ -23,7 +23,10 @@ - + app->rawModule = 'story'; + $vars = "productID=$productID&branchID=$branchID&orderBy=%s"; + ?>