view->orderBy = $orderBy;
$this->view->pager = $pager;
$this->view->users = $this->loadModel('user')->getPairs('noletter');
- $this->view->title = $this->lang->program->browse;
- $this->view->position[] = $this->lang->program->browse;
+ $this->view->title = $this->lang->program->PGMBrowse;
+ $this->view->position[] = $this->lang->program->PGMBrowse;
$this->view->programType = $programType;
$this->display();
}
diff --git a/module/program/model.php b/module/program/model.php
index 8b78640eb4..3fb5611d16 100644
--- a/module/program/model.php
+++ b/module/program/model.php
@@ -208,7 +208,7 @@ class programModel extends model
foreach($programs as $programID => $program)
{
- $orderBy = $program->template == 'waterfall' ? 'id_asc' : 'id_desc';
+ $orderBy = $program->model == 'waterfall' ? 'id_asc' : 'id_desc';
$program->projects = $this->project->getProjectStats($status, 0, 0, $itemCounts, $orderBy, $pager, $programID);
$program->teamCount = isset($teams[$programID]) ? $teams[$programID]->count : 0;
$program->estimate = isset($estimates[$programID]) ? $estimates[$programID]->estimate : 0;
diff --git a/module/program/view/browsebylist.html.php b/module/program/view/browsebylist.html.php
index 33deb7229a..a61d26caff 100644
--- a/module/program/view/browsebylist.html.php
+++ b/module/program/view/browsebylist.html.php
@@ -7,8 +7,8 @@
diff --git a/module/program/view/pgmbrowse.html.php b/module/program/view/pgmbrowse.html.php
index 69e9c0d862..832b9819d0 100644
--- a/module/program/view/pgmbrowse.html.php
+++ b/module/program/view/pgmbrowse.html.php
@@ -40,7 +40,7 @@
-
program->noProgram;?> " . $lang->program->create, '', "class='btn btn-info' data-toggle=modal");?>
+
program->noPGM;?> " . $lang->program->create, '', "class='btn btn-info' data-toggle=modal");?>
diff --git a/module/weekly/model.php b/module/weekly/model.php
index 1276719d86..3b543ee072 100644
--- a/module/weekly/model.php
+++ b/module/weekly/model.php
@@ -79,7 +79,7 @@ class weeklyModel extends model
return $this->dao->select('*')
->from(TABLE_WEEKLYREPORT)
->where('weekStart')->eq($monday)
- ->andWhere('program')->eq($program)
+ ->andWhere('PRJ')->eq($program)
->fetch();
}