changeset 8dba76c6e8ef in sao:5.0
details: https://hg.tryton.org/sao?cmd=changeset&node=8dba76c6e8ef
description:
        Do not display search_count if it is not higher than limit

        On small set of record when records are deleted the number of record 
could
        become lower than the initial search_count. As maintaining a correct
        search_count is complex, it is simpler to never display it if it is 
lower than
        the search limit.

        issue10789
        review383501003
        (grafted from 6b2e33b1025568f56aa23972fc02115da18496fc)
diffstat:

 src/tab.js |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 1d7e81a5f885 -r 8dba76c6e8ef src/tab.js
--- a/src/tab.js        Thu Oct 28 09:04:55 2021 +0200
+++ b/src/tab.js        Sun Oct 31 10:20:24 2021 +0100
@@ -1137,7 +1137,7 @@
                 this.buttons.switch_.prop('disabled',
                     this.attributes.view_ids > 1);
                 var msg = name + ' / ' + data[1];
-                if (data[1] < data[2]) {
+                if ((data[1] < data[2]) && (data[2] > this.screen.limit)) {
                     msg += Sao.i18n.gettext(' of ') + data[2];
                 }
                 this.status_label.text(msg).attr('title', msg);

Reply via email to