Skip to content

Commit bd2160e

Browse files
authored
Add workflow stage filter to articles endpoint (#45978)
1 parent aef0cb8 commit bd2160e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/components/com_content/src/Controller/ArticlesController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ public function displayList()
9494
$this->modelState->set('filter.checked_out', $filter->clean($apiFilterInfo['checked_out'], 'INT'));
9595
}
9696

97+
if (\array_key_exists('stage', $apiFilterInfo)) {
98+
$this->modelState->set('filter.stage', $filter->clean($apiFilterInfo['stage'], 'INT'));
99+
}
100+
97101
$apiListInfo = $this->input->get('list', [], 'array');
98102

99103
if (\array_key_exists('ordering', $apiListInfo)) {

0 commit comments

Comments
 (0)