Bug 1328879

Summary: UI: Item count shows (items 1-0 of 0) when there is no item on that page
Product: Red Hat CloudForms Management Engine Reporter: Satyajit Bulage <sbulage>
Component: UI - OPSAssignee: Jozef Zigmund <jzigmund>
Status: CLOSED ERRATA QA Contact: Satyajit Bulage <sbulage>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.6.0CC: hkataria, jhardy, mpovolny, obarenbo, sbulage, simaishi
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui
Fixed In Version: 5.6.0.5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 15:51:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Screenshot showing actual results none

Description Satyajit Bulage 2016-04-20 13:15:29 UTC
Created attachment 1149094 [details]
Screenshot showing actual results

Description of problem: When there is no/zero Provider in Containers still item count is shown as (items 1-0 of 0)


Version-Release number of selected component (if applicable):5.6.0.1-beta2.20160413141124_e25ac0e


How reproducible: 100%


Steps to Reproduce:
1.Naqvigate to Containers -->Providers
2.See at bottom right corner


Actual results: On page it shows (items 1-0 of 0) when there is no item


Expected results: It should display right count (items 0-0 of 0) when there is no item on page


Additional info:

Comment 3 Satyajit Bulage 2016-04-26 07:16:50 UTC
Still reproducible in Containers. Also encountered in other pages like Infrastructure, Cloud etc.

Comment 5 CFME Bot 2016-05-02 16:30:54 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/188a5dae37268f7eb35024b6a19345e7728ec365

commit 188a5dae37268f7eb35024b6a19345e7728ec365
Author:     Jozef Zigmund <jzigmund>
AuthorDate: Thu Apr 28 17:39:16 2016 +0200
Commit:     Jozef Zigmund <jzigmund>
CommitDate: Thu Apr 28 17:42:42 2016 +0200

    Fix 0 items count in pagination control
    
    When was zero items in list table, it has showed 1 instead of 0
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1328879

 app/views/layouts/_pagingcontrols.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 6 Satyajit Bulage 2016-05-04 05:33:44 UTC
Able to see right count (items 0 of 0) when there is no item on page.

Verified Version :-5.6.0.5-beta2.4.20160503153816_1fb554f

Comment 8 Harpreet Kataria 2016-06-14 20:34:28 UTC
*** Bug 1344347 has been marked as a duplicate of this bug. ***

Comment 10 errata-xmlrpc 2016-06-29 15:51:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1348

Comment 11 CFME Bot 2016-08-02 22:31:45 UTC
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=05558bd7977aeb2fb754c2c50342bf1234ef7b6b

commit 05558bd7977aeb2fb754c2c50342bf1234ef7b6b
Author:     Jozef Zigmund <jzigmund>
AuthorDate: Thu Apr 28 17:39:16 2016 +0200
Commit:     Jozef Zigmund <jzigmund>
CommitDate: Wed Jul 20 16:21:51 2016 +0200

    Fix 0 items count in pagination control
    
    When was zero items in list table, it has showed 1 instead of 0
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1328879

 app/views/layouts/_pagingcontrols.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)