* Change the link.

This commit is contained in:
tianshujie
2023-06-21 09:38:38 +08:00
parent e8d19aa976
commit d1b07c25ef
2 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ $config->design->linkcommit->dtable->fieldList['comment']['sortType'] = false;
$config->design->viewcommit->dtable->fieldList['id']['title'] = $lang->design->submission;
$config->design->viewcommit->dtable->fieldList['id']['format'] = 'RAWJS<function(val){return `#${val}`;}>RAWJS';
$config->design->viewcommit->dtable->fieldList['id']['link'] = helper::createLink('design', 'revision', 'repoID={id}');
$config->design->viewcommit->dtable->fieldList['id']['link'] = array('url' => helper::createLink('design', 'revision', 'repoID={id}'), 'target' => '_blank');
$config->design->viewcommit->dtable->fieldList['id']['target'] = '_blank';
$config->design->viewcommit->dtable->fieldList['id']['sortType'] = false;
+4 -5
View File
@@ -136,7 +136,7 @@ class design extends control
$response['result'] = 'success';
$response['message'] = $this->lang->saveSuccess;
$response['locate'] = $this->createLink('design', 'browse', "projectID=$projectID&productID=$productID");
$response['load'] = $this->createLink('design', 'browse', "projectID={$projectID}&productID={$productID}");
return $this->send($response);
}
@@ -407,11 +407,10 @@ class design extends control
* @access public
* @return void
*/
public function revision($repoID = 0, $projectID = 0)
public function revision(int $repoID = 0, int $projectID = 0)
{
$repo = $this->dao->select('*')->from(TABLE_REPOHISTORY)->where('id')->eq($repoID)->fetch();
$repoURL = $this->createLink('repo', 'revision', "repoID=$repo->repo&objectID=$projectID&revistion=$repo->revision");
header("location:" . $repoURL);
$repo = $this->dao->select('*')->from(TABLE_REPOHISTORY)->where('id')->eq($repoID)->fetch();
$this->locate(helper::createLink('repo', 'revision', "repoID={$repo->repo}&objectID={$projectID}&revistion={$repo->revision}"));
}
/**