diff --git a/module/program/config/dtable.php b/module/program/config/dtable.php index 00919ead61..37a3d1ec58 100644 --- a/module/program/config/dtable.php +++ b/module/program/config/dtable.php @@ -238,7 +238,7 @@ $config->program->browse->dtable->fieldList['invested']['name'] = 'invested' $config->program->browse->dtable->fieldList['invested']['title'] = $lang->program->invested; $config->program->browse->dtable->fieldList['invested']['minWidth'] = 70; $config->program->browse->dtable->fieldList['invested']['type'] = 'format'; -$config->program->browse->dtable->fieldList['invested']['sortType'] = true; +$config->program->browse->dtable->fieldList['invested']['sortType'] = false; $config->program->browse->dtable->fieldList['invested']['show'] = true; $config->program->browse->dtable->fieldList['invested']['group'] = 3; diff --git a/module/program/control.php b/module/program/control.php index d0cc6e7294..5bbe848d08 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -62,6 +62,7 @@ class program extends control $this->view->usersAvatar = $this->user->getAvatarPairs(''); $this->view->PMList = $PMList; $this->view->progressList = $this->program->getProgressList(); + $this->view->param = $param; $this->display(); } diff --git a/module/program/ui/browse.html.php b/module/program/ui/browse.html.php index 5acbf3057f..a7dc9b10ac 100644 --- a/module/program/ui/browse.html.php +++ b/module/program/ui/browse.html.php @@ -193,6 +193,8 @@ dtable set::footPager(usePager()), set::canRowCheckable(jsRaw("function(rowID){return this.getRowInfo(rowID).data.type == 'project';}")), set::onRenderCell(jsRaw('window.renderCell')), + set::orderBy($orderBy), + set::sortLink(createLink('program', 'browse', "status={$status}&orderBy={name}_{sortType}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}¶m={$param}")), set::footToolbar(array ( 'type' => 'btn-group',