Bug 472232 - The count of "Note apply to this Certification" is wrong in the list.cgi when the cert is not public but closed
The count of "Note apply to this Certification" is wrong in the list.cgi whe...
Status: CLOSED CURRENTRELEASE
Product: Red Hat Hardware Certification Program
Classification: Red Hat
Component: Hardware Catalog (Show other bugs)
5.2
All Linux
low Severity low
: ---
: ---
Assigned To: XINSUN
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-19 09:49 EST by XINSUN
Modified: 2009-02-03 23:43 EST (History)
4 users (show)

See Also:
Fixed In Version: 5.3 (hwcert-3.2rh-20090129.0)
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-02-03 23:43:30 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Patch Fix. (881 bytes, patch)
2008-11-19 10:11 EST, XINSUN
no flags Details | Diff

  None (edit)
Description XINSUN 2008-11-19 09:49:40 EST
Description of problem:
The count of "Note apply to this Certification" is wrong in the list.cgi when the cert is not public but closed.

How reproducible:
Choose a private and closed cert which is in the "support" group or "hwcert_edit" group and have one "Additional Certification Notes".
Then use list.cgi to search this cert, the count of "Note apply to this Certification" is not correct.

Steps to Reproduce:
1.Input the "M4400" in the "Quick Search" at the index.cgi of catalog.
2.Click "Search".

  
Actual results:
It shows:the cert has 3 notes.

Expected results:
It shows:the cert has 1 note.

Additional info:
"M4400" is just an example cert. we can find out all the private and closed certs have this problem.
Comment 2 XINSUN 2008-11-19 10:11:26 EST
Created attachment 324052 [details]
Patch Fix.
Comment 3 Rob Landry 2008-11-19 11:40:57 EST
Patch looks good to me, please commit after testing, the states to check are close public, closed private with 1 group and >1 group assigned, and in-progress private with 1group >1 group assign; I suspect the above patch solves all of these situations.
Comment 4 XINSUN 2008-11-19 21:43:17 EST
Tested well and checked in.

Nicho

Note You need to log in before you can comment on or make changes to this bug.