Bug 1085674

Summary: [test run]Add the same bug_id to one case twice using different link in run detail page, system will record duplicate run_id for this bug.
Product: [Other] TCMS Reporter: yangqiu <qiyang>
Component: ApplicationAssignee: Yang Ren <ryang>
Status: NEW --- QA Contact: Nobody <nobody>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.8.5CC: cqi, junzhang, ryang, vchen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
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
Add the same bug_id to one case twice using different link in run detail page, system will record duplicate run_id for this bug none

Description yangqiu 2014-04-09 06:19:34 UTC
Created attachment 884388 [details]
Add the same bug_id to one case twice using different link in run detail page, system will record duplicate run_id for this bug

Description of problem:
as subject.

Version-Release number of selected component (if applicable):
v3.8.7-1 on qa server

How reproducible:
100%

Steps to Reproduce:
1.Enter the run detail page, expand test case detail.
https://tcms.app.qa.eng.nay.redhat.com/run/82114/?from_plan=10680
2.Add a bug(id: 111) to case by clicking 'add' link at bug form.
3.Add the same bug(id: 111) to the same case by clicking 'bugs-add' link at action menu.
4.Refresh the page, check the bug_id and run_id and count of bugs recorded in the page.

Actual results:
System show that this bug from two same run_id.
And system show there are 2 bugs related to this case, while only bug 111 has been added to this case in fact.

Expected results:
System show that this bug from current run_id.
And system only show 1 bug related to this case.

Additional info: