Bug 445904 - create a new hwcert enables post date by default
Summary: create a new hwcert enables post date by default
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Ready Certification Tests
Classification: Retired
Component: web site
Version: 2
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: XINSUN
QA Contact: Yu Shao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-09 18:35 UTC by Rob Landry
Modified: 2008-06-23 07:38 UTC (History)
2 users (show)

Fixed In Version: (2.18rh) 2008/05/23 push
Clone Of:
Environment:
Last Closed: 2008-06-23 07:38:13 UTC
Embargoed:


Attachments (Terms of Use)
Pls review. (794 bytes, patch)
2008-05-14 11:18 UTC, XINSUN
no flags Details | Diff

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


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