changeset 21eb94e731bd in sao:5.8
details: https://hg.tryton.org/sao?cmd=changeset&node=21eb94e731bd
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 e9a4f7491775 -r 21eb94e731bd 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
@@ -1341,7 +1341,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