changeset ad349be611d4 in sao:6.0
details: https://hg.tryton.org/sao?cmd=changeset&node=ad349be611d4
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 871dd915a675 -r ad349be611d4 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
@@ -1482,7 +1482,7 @@
                     'disabled', this.screen.readonly);
 
                 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