LPS-32658 Modify SearchContainer:setTotal(). Now it calculates the cur returning the last page that has results instead default_cur (1).
LPS-32658 Incorrect pagination: Documents and media
LPS-32658 Source formatting
LPS-32658 SF