This commit is contained in:
holan20180123
2021-02-04 15:39:43 +08:00
parent 68214fb34f
commit 2401cc2b84
3 changed files with 15 additions and 13 deletions
+5 -4
View File
@@ -92,7 +92,7 @@ class repo extends control
if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError()));
$link = $this->repo->createLink('showSyncCommit', "repoID=$repoID");
$link = $this->repo->createLink('showSyncCommit', "repoID=$repoID", '', false, $this->projectID);
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $link));
}
@@ -769,9 +769,10 @@ class repo extends control
$this->view->position[] = $this->lang->repo->showSyncCommit;
$latestInDB = $this->repo->getLatestCommit($repoID);
$this->view->version = $latestInDB ? (int)$latestInDB->commit : 1;
$this->view->repoID = $repoID;
$this->view->branch = $branch;
$this->view->version = $latestInDB ? (int)$latestInDB->commit : 1;
$this->view->repoID = $repoID;
$this->view->branch = $branch;
$this->view->browseLink = $this->repo->createLink('browse', "repoID=$repoID", '', false, $this->projectID);
$this->display();
}