View Issue Details

IDProjectCategoryView StatusLast Update
0011114mantisbtplug-inspublic2014-09-23 18:05
Reportersebdelyon Assigned Todregad  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.0rc2 
Target Version1.2.12Fixed in Version1.2.12 
Summary0011114: XML Import/Export : unable to associate with category created in the main project
Description

The current version only allows to associate issue with category created in the current project.

Additional Information

To have the possibity to use inherited categories, you have to operate the following changes into issue.php file

replace (line 76):

if( $this->keepCategory_ ) {
$t_category_id = category_get_id_by_name( $reader->value, $t_project_id);

if( $t_categoryid !== false ) {
$this->newbug
->category_id = $t_category_id;
}

}

by :

if( $this->keepCategory_ ) {
$t_category_id = category_get_id_by_name( $reader->value, $t_project_id, false );
if( $t_category_id === false ) {
$t_category_id = category_get_id_by_name( $reader->value, 0);
}

if( $t_categoryid !== false ) {
$this->newbug
->category_id = $t_category_id;
}
}

Tagspatch

Relationships

related to 0015721 closedgrangeway Functionality to consider porting to master-2.0.x 
has duplicate 0013327 closeddregad Import impossible with subprojects and categories 
has duplicate 0011555 closeddregad [Import/Export] Pb with plugin Import Export 

Activities

grangeway

grangeway

2013-04-05 17:56

reporter   ~0036196

Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch

Related Changesets

MantisBT: master-1.2.x f156fb1e

2012-09-18 02:15

dregad


Details Diff
XmlImportExport: Allow import of inherited categories

Fixes 0011114
Affected Issues
0011114
mod - plugins/XmlImportExport/ImportXml/Issue.php Diff File

MantisBT: master b7acce28

2012-09-18 02:15

dregad


Details Diff
XmlImportExport: Allow import of inherited categories

Fixes 0011114
Affected Issues
0011114
mod - plugins/XmlImportExport/ImportXml/Issue.php Diff File