Skip to content

Commit 5b738e8

Browse files
authored
Fix menu and module list state filter (joomla#43941)
1 parent 638d7b0 commit 5b738e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

administrator/components/com_menus/src/Model/ItemsModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ protected function getListQuery()
326326
->bind(':clientId', $clientId, ParameterType::INTEGER);
327327

328328
// Filter on the published state.
329-
$published = $this->getState('filter.published');
329+
$published = $this->getState('filter.published', '');
330330

331331
if (is_numeric($published)) {
332332
$published = (int) $published;

administrator/components/com_modules/src/Model/ModulesModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ protected function getListQuery()
313313
}
314314

315315
// Filter by published state.
316-
$state = $this->getState('filter.state');
316+
$state = $this->getState('filter.state', '');
317317

318318
if (is_numeric($state)) {
319319
$state = (int) $state;

0 commit comments

Comments
 (0)