Skip to content

Commit 936f5da

Browse files
[4.4] Pagination fixes part 2 (joomla#43967)
* consider missing parameters and read input from get * Update components/com_finder/src/View/Search/HtmlView.php Co-authored-by: Richard Fath <[email protected]> * revert get change --------- Co-authored-by: Richard Fath <[email protected]>
1 parent 129bd28 commit 936f5da

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

components/com_content/src/View/Archive/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public function display($tpl = null)
221221
$this->pagination->setAdditionalUrlParam('month', $state->get('filter.month'));
222222
$this->pagination->setAdditionalUrlParam('year', $state->get('filter.year'));
223223
$this->pagination->setAdditionalUrlParam('filter-search', $state->get('list.filter'));
224-
$this->pagination->setAdditionalUrlParam('catid', $app->input->get('catid', [], 'array'));
224+
$this->pagination->setAdditionalUrlParam('catid', $app->getInput()->get->get('catid', [], 'array'));
225225

226226
$this->_prepareDocument();
227227

components/com_finder/src/View/Search/HtmlView.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ public function display($tpl = null)
153153
// Flag indicates to not add limitstart=0 to URL
154154
$this->pagination->hideEmptyLimitstart = true;
155155

156+
$input = $app->getInput()->get;
157+
156158
// Add additional parameters
157159
$queryParameterList = [
158160
'f' => 'int',
@@ -163,10 +165,12 @@ public function display($tpl = null)
163165
'd2' => 'string',
164166
'w1' => 'string',
165167
'w2' => 'string',
168+
'o' => 'word',
169+
'od' => 'word',
166170
];
167171

168172
foreach ($queryParameterList as $parameter => $filter) {
169-
$value = $app->input->get($parameter, null, $filter);
173+
$value = $input->get($parameter, null, $filter);
170174

171175
if (is_null($value)) {
172176
continue;

0 commit comments

Comments
 (0)