mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
[activity] handle case when there is no action associated to selected
issues
This commit is contained in:
@@ -103,6 +103,10 @@ class Paginator implements PaginatorInterface
|
||||
|
||||
public function countPages()
|
||||
{
|
||||
if (0 === $this->itemPerPage) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
$nb = floor($this->totalItems / $this->itemPerPage);
|
||||
|
||||
if ($this->totalItems % $this->itemPerPage > 0) {
|
||||
|
Reference in New Issue
Block a user