Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug #190387 fix: page limit is not working on notifications list view #159

Open
wants to merge 1 commit into
base: release-3.0.4
Choose a base branch
from

Conversation

deepgawade89
Copy link
Contributor

No description provided.

@@ -85,11 +85,15 @@ protected function populateState($ordering = 'id', $direction = 'asc')
parent::populateState($ordering, $direction);

// Get pagination request variables
$limit = $app->getUserStateFromRequest($this->context . '.list.limit', 'limit', $app->get('list_limit'), 'int');
$limit = (isset($app->input->get('list')['limit'])) ? $app->input->get('list')['limit'] : $app->getUserStateFromRequest('global.list.limit', 'limit', $app->get('list_limit'), 'int');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deepa-g In $app->input->get('list')['limit'] the $app->input->get('list') should have some default value and the filter or else it will give error if list is not defined same for $app->get('list_limit')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants