diff --git a/administrator/components/com_privacy/src/Model/ConsentsModel.php b/administrator/components/com_privacy/src/Model/ConsentsModel.php index 342e3dd8847e2..172124a7cc5fa 100644 --- a/administrator/components/com_privacy/src/Model/ConsentsModel.php +++ b/administrator/components/com_privacy/src/Model/ConsentsModel.php @@ -105,6 +105,13 @@ protected function getListQuery() ->bind(':state', $state, ParameterType::INTEGER); } + $subject = $this->getState('filter.subject'); + + if (!empty($subject)) { + $query->where($db->quoteName('a.subject') . ' = :subject') + ->bind(':subject', $subject, ParameterType::STRING); + } + // Handle the list ordering. $ordering = $this->getState('list.ordering'); $direction = $this->getState('list.direction');