Bug 1038572

Summary: [export plan]When a case belong to two plan, export both two plans at one time, the export xml file contains duplicate cases.
Product: [Other] TCMS Reporter: yangqiu <qiyang>
Component: ApplicationAssignee: Yuguang Wang <yuwang>
Status: NEW --- QA Contact: Nobody <nobody>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.8.5CC: cqi, junzhang, jzhao, 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:
Attachments:
Description Flags
When a case belong to two plan, export both two plans at one time, the export xml file contains duplicate cases none

Description yangqiu 2013-12-05 11:25:13 UTC
Created attachment 833096 [details]
When a case belong to two plan, export both two plans at one time, the export xml file contains duplicate cases

Description of problem:
As subject.

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

How reproducible:
100%

Steps to Reproduce:
1. case A belongs to plan 1 and plan 2. 
2. Use advance search to search the two plans.
3. In search result page, select the two plans, click export btn. 
4. Check the export result file.

Actual results:
There are 4 case A show in export file.
For plan 1: there are 2 duplicate case A.
For plan 2: there are 2 duplicate case A.

Expected results:
There are 2 case A show in export file, the one belongs to plan 1, another belongs to plan 2.

Additional info:

Comment 1 yangqiu 2013-12-24 09:36:43 UTC
The above issue has happened when click printable copy btn in search plan page.

Comment 2 xuezhi ma 2014-04-18 11:34:02 UTC
Now if I select two plan, only the first one will be exported.

Comment 3 xuezhi ma 2014-04-18 11:35:37 UTC
(In reply to xuezhi ma from comment #2)
> Now if I select two plan, only the first one will be exported.

version: TCMS 3.8.7-hotfix on stage