Bug 472232

Summary: The count of "Note apply to this Certification" is wrong in the list.cgi when the cert is not public but closed
Product: [Retired] Red Hat Hardware Certification Program Reporter: XINSUN <xisun>
Component: Hardware CatalogAssignee: XINSUN <xisun>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 5.2CC: rlandry, xiqin, ykun, yshao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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-04 04:43:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch Fix. none

Description XINSUN 2008-11-19 14:49:40 UTC
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 15:11:26 UTC
Created attachment 324052 [details]
Patch Fix.

Comment 3 Rob Landry 2008-11-19 16:40:57 UTC
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-20 02:43:17 UTC
Tested well and checked in.

Nicho