Bug 445904

Summary: create a new hwcert enables post date by default
Product: [Retired] Red Hat Ready Certification Tests Reporter: Rob Landry <rlandry>
Component: web siteAssignee: XINSUN <xisun>
Status: CLOSED CURRENTRELEASE QA Contact: Yu Shao <yshao>
Severity: low Docs Contact:
Priority: medium    
Version: 2CC: xisun, yshao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: (2.18rh) 2008/05/23 push Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-06-23 07:38:13 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
Pls review. none

Description Rob Landry 2008-05-09 18:35:13 UTC
Description of problem:

creating a new hwcert and selecting provide manually always defaults to an blank
but enabled postdate group being set.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 XINSUN 2008-05-14 11:18:21 UTC
Created attachment 305349 [details]
Pls review.

The bug only appears at the state: The user who is in the "hwcert_postdate"
group create a new hwcert. it it caused by the below codes:

 SendSQL("SELECT user_id FROM user_group_map
		 WHERE user_id = $::userid
		 AND group_id = $v
		 AND isbless = 0");
	my ($permit) = FetchSQLData();

 if ($permit) {
	    push(@groupstoadd, $v)
	}

foreach my $grouptoadd (@groupstoadd) {
    SendSQL("INSERT INTO bug_group_map (bug_id, group_id)
	     VALUES ($id, $grouptoadd)");
}



Best Regards!
Nicho

Comment 2 Rob Landry 2008-05-16 15:54:36 UTC
Looks good, please check-in

Comment 3 XINSUN 2008-05-16 16:46:53 UTC
Patch has been checked into cvs.
Nicho