Migration data from BugZilla to MantisBT

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
kelson
Posts: 32
Joined: 01 Mar 2011, 11:02

Migration data from BugZilla to MantisBT

Post by kelson »

Hi guys,

I have migrated data from BugZilla to MantisBT successfully, but I am facing to a strange behavior of description field.

If a line starts by a space, space seems to be replaced by the following code :
&0000057:0000160;

By the way, MantisBT proccesses &0000057:0000160; as a link to another issue.
http://url_mantisbt/view.php?id=57#c160

Any ideas to clean my database ?

Thanks,
atrol
Site Admin
Posts: 8571
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Migration data from BugZilla to MantisBT

Post by atrol »

MantisBT replaces a # followed by a number by a link to an issue.
~ followed by a number is replaced by a link to a note.

To disable ithis behavior, goto page Manage > Mangae Plugins
Click on link "MantisBT Formatting 1.0a"
Set "MantisBT Links ( Issue/Issuenote )" to Off
Please use Search before posting and read the Manual
kelson
Posts: 32
Joined: 01 Mar 2011, 11:02

Re: Migration data from BugZilla to MantisBT

Post by kelson »

Hi Atrol,

Actually, the problem do not come from the character #, it is on character space.
kelson
Posts: 32
Joined: 01 Mar 2011, 11:02

Re: Migration data from BugZilla to MantisBT

Post by kelson »

By curiosity, I set "MantisBT Links ( Issue/Issuenote )" to Off, and all &0000057:0000160; disappear.
But I want to keep the link function active.

I think, I will check the code =)

Thanks !
kelson
Posts: 32
Joined: 01 Mar 2011, 11:02

Re: Migration data from BugZilla to MantisBT

Post by kelson »

In plugin MantisCoreFormatting, MantisCoreFormatting.php

if( ON == $s_buglinks ) {
$t_string = string_process_bug_link( $t_string );
// $t_string = string_process_bugnote_link( $t_string );
}

The problem come from string_process_bugnote_link.
Too bad that we cannot set/unset bug link and bugnote link on the config page.
Post Reply