changeset 6b2e33b10255 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=6b2e33b10255
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
diffstat:

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

diffs (12 lines):

diff -r f86adeee5886 -r 6b2e33b10255 src/tab.js
--- a/src/tab.js        Sat Oct 30 11:32:05 2021 +0200
+++ b/src/tab.js        Sun Oct 31 10:20:24 2021 +0100
@@ -1483,7 +1483,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