* code review

This commit is contained in:
chaideqing
2022-10-18 09:39:39 +08:00
parent bb90adf795
commit e50dbc5be3
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -787,9 +787,9 @@ EOT;
*/
public function debug($filePath, $action)
{
$filePath = helper::safe64Decode($filePath);
$fileBasePath = realpath(dirname($filePath));
if(strpos($fileBasePath, $this->app->appRoot . 'module') !== 0 && strpos($fileBasePath, $this->app->appRoot . 'extension') !== 0) return;
$filePath = helper::safe64Decode($filePath);
$fileDirPath = realpath(dirname($filePath));
if(strpos($fileDirPath, $this->app->getModuleRoot()) !== 0 and strpos($fileDirPath, $this->app->getExtensionRoot()) !== 0) return;
if($action == 'extendModel')
{
$method = $this->api->getMethod($filePath, 'Model');
+1 -1
View File
@@ -1235,6 +1235,7 @@ class story extends control
$releaseApp = $tab == 'execution' ? 'product' : $tab;
$this->session->set('productList', $uri . "#app={$tab}", 'product');
$this->session->set('buildList', $uri, $buildApp);
$this->app->loadLang('bug');
$storyID = (int)$storyID;
$story = $this->story->getById($storyID, $version, true);
@@ -1315,7 +1316,6 @@ class story extends control
$this->view->param = $param;
$this->view->builds = $this->loadModel('build')->getStoryBuilds($storyID);
$this->view->releases = $this->loadModel('release')->getStoryReleases($storyID);
$this->view->bugStatusList = $this->app->loadLang('bug')->bug->statusList;
$this->display();
}
+1 -1
View File
@@ -477,7 +477,7 @@
<?php
foreach($bugs as $bug)
{
$bugInfo = "#$bug->id" . '&nbsp<span class="status-bug status-' . $bug->status .'">' . $bugStatusList[$bug->status] . '</span>&nbsp' . $bug->title;
$bugInfo = "#$bug->id" . '&nbsp<span class="status-bug status-' . $bug->status .'">' . $this->lang->bug->statusList[$bug->status] . '</span>&nbsp' . $bug->title;
echo "<li title='$bug->title'>" . html::a($this->createLink('bug', 'view', "bugID=$bug->id", '', true), $bugInfo, '', "class='iframe' data-width='80%'") . '</li>';
}
?>