diff --git a/api/v1/entries/programs.php b/api/v1/entries/programs.php index 78b6905445..d129ea429c 100644 --- a/api/v1/entries/programs.php +++ b/api/v1/entries/programs.php @@ -22,6 +22,8 @@ class programsEntry extends Entry $_COOKIE['showClosed'] = $this->param('showClosed', 0); $mergeChildren = $this->param('mergeChildren', 0); + $this->config->systemMode = 'new'; + $fields = $this->param('fields', ''); if(stripos(strtolower(",{$fields},"), ",dropmenu,") !== false) return $this->getDropMenu(); diff --git a/api/v1/entries/projects.php b/api/v1/entries/projects.php index 9c55caff1d..04b43ab76e 100644 --- a/api/v1/entries/projects.php +++ b/api/v1/entries/projects.php @@ -26,6 +26,8 @@ class projectsEntry extends entry $_COOKIE['involved'] = $this->param('involved', 0); + $this->config->systemMode = 'new'; + if($programID) { $control = $this->loadController('program', 'project'); diff --git a/module/repo/model.php b/module/repo/model.php index 0f6766f8f0..6664e6aa7c 100644 --- a/module/repo/model.php +++ b/module/repo/model.php @@ -1854,6 +1854,7 @@ class repoModel extends model public function syncCommit($repoID, $branchID) { $repo = $this->getRepoByID($repoID); + $this->scm = $this->app->loadClass('scm'); $this->scm->setEngine($repo); $latestInDB = $this->dao->select('DISTINCT t1.*')->from(TABLE_REPOHISTORY)->alias('t1')