Page 1 of 1

[SOLVED]Integration issue with Relevant Bugs field

Posted: Mon Apr 15, 2013 3:07 pm
by Benm
Hi,
I am trying to integrate Testlink with Mantis, but am having an issue. So far I have it so Testlink can access the Mantis Bug ID numbers, but the "Relevant bugs" section is blank. Essentially I am connecting to the database, but none of the bug info is coming over. I am running:
Testlink 1.9.6
Mantis 1.2.2
PHP 5.3.3
MySQL 5.0.95
Anonymous login is turned on. Using Mantis DB interface in Testlink (not SOAP). Linux.

Mantis configuration is as follows:
<issuetracker>
<dbhost>HOSTNAME</dbhost>
<dbname>DB_NAME</dbname>
<dbtype>mysql</dbtype>
<dbuser>USERNAME</dbuser>
<dbpassword>USER_PASS</dbpassword>
<uriview>http://mantis.MY_URL.com/view.php?id=</uriview>
<uricreate>http://mantis.MY_URL.com/</uricreate>
</issuetracker>

I was wondering if anyone had an idea as to why the Relevant bugs field inside Testlink is empty. Please let me know if any additional info is needed.

Thanks.

Re: Integration issue with Relevant Bugs field

Posted: Mon Apr 15, 2013 3:50 pm
by fluter
Did you ever read my post?
http://www.teamst.org/forum/viewtopic.p ... 1ddc68821a

I installed testlink on ubuntu server 10.4,
I have changed the source code in"/var/www/testlink/lib/issuetrackerintegration/mantisdbInterface.class.php" at line 161.


# Beginning of delete
# return "<div title=\"{$title}\" style=\"display: inline; background: $color;\">$linkVerbose->link</div>";
# End of delete
# Beginning of new

$linkVerbose->link = "<div title=\"{$title}\" style=\"display: inline; background: $color;\">$linkVerbose->link</div>";
return $linkVerbose;

# End of new

It worked after the modification, maybe it can help you too.
good luck.

Re: Integration issue with Relevant Bugs field

Posted: Wed Apr 17, 2013 8:55 pm
by Benm
That did fix it, thanks for the help.