changeset dd1cd9674e54 in sao:5.0 details: https://hg.tryton.org/sao?cmd=changeset&node=dd1cd9674e54 description: Check screen limit is None before comparing
issue11015 review389361002 (grafted from 28d16a85ee0d4bb2c7b160e7ee859f7badea216d) diffstat: src/tab.js | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diffs (14 lines): diff -r be71fb440f96 -r dd1cd9674e54 src/tab.js --- a/src/tab.js Fri Dec 03 21:52:24 2021 +0100 +++ b/src/tab.js Thu Dec 16 22:14:22 2021 +0100 @@ -1137,7 +1137,9 @@ this.buttons.switch_.prop('disabled', this.attributes.view_ids > 1); var msg = name + ' / ' + data[1]; - if ((data[1] < data[2]) && (data[2] > this.screen.limit)) { + if ((data[1] < data[2]) && + this.screen.limit !== null && + (data[2] > this.screen.limit)) { msg += Sao.i18n.gettext(' of ') + data[2]; } this.status_label.text(msg).attr('title', msg);