Skip to content

Commit

Permalink
pkp/pkp-lib#2612 Add filter params to filters instead of filter groups
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed Aug 14, 2017
1 parent 397fa29 commit f52827d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions controllers/list/submissions/SubmissionsListHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ public function getConfig() {
'heading' => __('section.sections'),
'filters' => $this->getSectionFilters(),
);

// Put the incomplete filter at the end
if (isset($config['filters']['isIncomplete'])) {
$isIncompleteFilter = $config['filters']['isIncomplete'];
unset($config['filters']['isIncomplete']);
$config['filters']['isIncomplete'] = $isIncompleteFilter;
}
}

return $config;
Expand All @@ -50,18 +43,22 @@ public function getConfig() {
public function getWorkflowStages() {
return array(
array(
'param' => 'stageIds',
'val' => WORKFLOW_STAGE_ID_SUBMISSION,
'title' => __('manager.publication.submissionStage'),
),
array(
'param' => 'stageIds',
'val' => WORKFLOW_STAGE_ID_EXTERNAL_REVIEW,
'title' => __('manager.publication.reviewStage'),
),
array(
'param' => 'stageIds',
'val' => WORKFLOW_STAGE_ID_EDITING,
'title' => __('submission.copyediting'),
),
array(
'param' => 'stageIds',
'val' => WORKFLOW_STAGE_ID_PRODUCTION,
'title' => __('manager.publication.productionStage'),
),
Expand All @@ -88,6 +85,7 @@ public function getSectionFilters() {

return array_map(function($section) {
return array(
'param' => 'sectionIds',
'val' => $section['id'],
'title' => $section['title'],
);
Expand Down

0 comments on commit f52827d

Please sign in to comment.