Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0002566mantisbtbugtrackerpublic2003-12-13 04:50
ReporterreporterAssigned Tojfitzell  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
PlatformWidgetOSLinuxOS Version1.2
Product Version0.17.5 
Summary0002566: Copy categories does not work
Description

Using the Copy Category feature, I'm not able copy the categories to another project. It acts like everything was successful, but the recipient project never shows the categories and they have to be added manually.

TagsNo tags attached.

Relationships

has duplicate 0002641 closedjfitzell Copy Catagories 

Activities

reporter

reporter

2002-09-24 14:11

reporter   ~0003302

Was just going to add this as a bug. Have the same problem.

reporter

reporter

2002-10-31 14:10

reporter   ~0003451

As a suggestion, here is my fix for it:

Index: manage_proj_cat_copy.php

RCS file: /W/cvs/cvsroot/mantis/manage_proj_cat_copy.php,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 manage_proj_cat_copy.php
13c13
< $result = category_get_all( $f_project_id );

$result = category_get_all( $f_new_project_id );
20,21c20,21
< if ( !is_duplicate_category( $f_new_project_id, $t_category ) ) {
< category_add( $f_new_project_id, $t_category );

  if ( !is_duplicate_category( $f_project_id, $t_category ) ) {
      category_add( $f_project_id, $t_category );

Glenn Henshaw (ghenshaw at altera dot com)

jfitzell

jfitzell

2002-11-10 14:01

reporter   ~0003467

I fixed this... I think it was actually working already in CVS but wasn't because I was testing with register globals turned off and I haven't updated that page yet. Anyway, for completeness I made it actually work even without register globals and checked it in.

Related Changesets

MantisBT: master 48db23c4

2002-11-10 17:02

Julian Fitzell


Details Diff
* manage_proj_cat_copy.php: clean up a bit to work without register_globals so I can make sure it's safe to close issue 0002566

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1606 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0002566
mod - manage_proj_cat_copy.php Diff File