I successfully installed MantisBT Version 1.2.10 using MSSQL and am at the moment busy configuring it to my needs.
One feature I definitely want to use is tagging.
I can create tags in
Manage -> Manage Tags
without problems. There appears a new entry in the available tags which looks like:
Code: Select all
Name Creator Date Created Last Updated
user0 1970-01-01 01:00 1970-01-01 01:00
In the detail view of a Ticket the 'existing tags' drop down is empty. I can enter manually tags and assign them to the Ticket, they are assigned correctly.
I started to debug, and the problem seems to be core/tag_api.php line 236 - 239
Code: Select all
$t_query = "SELECT * FROM $t_tag_table
$t_where ORDER BY name";
$t_result = db_query_bound( $t_query, $t_where_params, $p_count, $p_offset);
Code: Select all
foreach ( $t_result as $res )
{
echo "<pre>";
print_r( $res );
echo "</pre>";
}
Array
(
[0] => 1
[1] => 2
[2] => test
[3] => test
[4] => 1338816196
[5] => 1338816196
)
In manage_tags_page.php for example, the returned result from tag_api.php is used as follows:
Code: Select all
$t_tag_row['name']
$t_tag_row['description']
$t_tag_row['id']
$t_tag_row['user_id']
$t_tag_row['date_created']
$t_tag_row['date_updated']
Code: Select all
$t_tag_row['name'] = $t_tag_row[2];
$t_tag_row['description'] = $t_tag_row[3];
$t_tag_row['id'] = $t_tag_row[0];
$t_tag_row['user_id'] = $t_tag_row[1];
$t_tag_row['date_created'] = $t_tag_row[4];
$t_tag_row['date_updated'] = $t_tag_row[5];
I guess I have the same problem in the 'existing tags' drop down in the detail view of Tickets.
Is this a problem of my setup?
Is this a problem of using MSSQL?
I am a bit at a loss now.
I could add my remapping of the result keys at all places where the displaying of tags does not work, but this does not sound like a good idea.
Is there a way to specify somewhere that SQL results are always returned with numeric and named keys?
Is there any other way to solve this?
I was not able to find this problem in this forum, the bug list or google.
Your help is very much appreciated.
Kind Regards
Us3r