diff options
| author | Sean McGivern <sean@gitlab.com> | 2017-11-09 13:13:48 +0000 |
|---|---|---|
| committer | Sean McGivern <sean@gitlab.com> | 2017-11-09 13:13:48 +0000 |
| commit | acf49c6d89a38806fd722c2b9052f99c68822e43 (patch) | |
| tree | ed001d07ed570d362007dc88c44dce38856599ec /CONTRIBUTING.md | |
| parent | 760b2c75ef9d2c6acb655860dceae4c04cd8e5a7 (diff) | |
| download | gitlab-ce-acf49c6d89a38806fd722c2b9052f99c68822e43.tar.gz | |
Fix access to the final page of todos
The todos page limit is 20, and both that and a user's pending todo count are
integers. Using integer division means that the result's floor will be taken,
defeating the point of the later call to `#ceil`.
So we need to convert one side of the division to a float first, otherwise the
last page won't be treated as available.
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions
