Skip to content

Commit

Permalink
Merge branch 'j4/media/icons-permissions' of github.com:Digital-Peak/…
Browse files Browse the repository at this point in the history
…joomla-cms into j4/media/icons-permissions
  • Loading branch information
laoneo committed Feb 7, 2022
2 parents 3fc11cc + bde2665 commit 7af35b1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ git clone git@github.com:joomla/joomla-cms.git
```bash
cd joomla-cms
```
- Go to the 4.1-dev branch:
- Go to the 4.2-dev branch:
```bash
git checkout 4.2-dev
```
Expand Down
12 changes: 12 additions & 0 deletions api/components/com_content/src/Controller/ArticlesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,18 @@ public function displayList()
$this->modelState->set('filter.language', $filter->clean($apiFilterInfo['language'], 'STRING'));
}

$apiListInfo = $this->input->get('list', [], 'array');

if (array_key_exists('ordering', $apiListInfo))
{
$this->modelState->set('list.ordering', $filter->clean($apiListInfo['ordering'], 'STRING'));
}

if (array_key_exists('direction', $apiListInfo))
{
$this->modelState->set('list.direction', $filter->clean($apiListInfo['direction'], 'STRING'));
}

return parent::displayList();
}

Expand Down

0 comments on commit 7af35b1

Please sign in to comment.