Commit 57487f14 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Robert Lyon

Bug 1711443: 'Show more' button in group P&C screen

In pagination.js, pagination_showmore function was
expecting the group value from the button clicked
to be a string, but it is a number.

.data() from jQuery converts a string representing
a number to an actual number.

behatnotneeded

Change-Id: If66231211c229f1cf18a5efb35236c2f90ad5a44
(cherry picked from commit e470bc63)
parent 99ba248e
......@@ -313,7 +313,7 @@ function pagination_showmore(btn) {
var params = {};
params.offset = parseInt(btn.data('offset'), 10);
params.orderby = btn.data('orderby');
if (btn.data('group').length) {
if (Number.isInteger(btn.data('group'))) {
params.group = btn.data('group');
}
if (btn.data('institution').length) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment