Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mantisbt/mantisbt
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 61c7a98
Choose a base ref
...
head repository: mantisbt/mantisbt
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dd92630
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Oct 5, 2011

  1. Correct tag retrieval on SQL Server when no tags are defined

    Fix #13363 : Application Failure when trying to select an issue
    rombert committed Oct 5, 2011
    Copy the full SHA
    59b1fff View commit details
  2. Copy the full SHA
    dd92630 View commit details
Showing with 6 additions and 1 deletion.
  1. +5 −0 core/tag_api.php
  2. +1 −1 csv_export.php
5 changes: 5 additions & 0 deletions core/tag_api.php
Original file line number Diff line number Diff line change
@@ -421,6 +421,11 @@ function tag_get_candidates_for_bug( $p_bug_id ) {
while( $row = db_fetch_array( $result ) ) {
$t_subquery_results[] = (int)$row;
}

if ( count ( $t_subquery_results ) == 0 ) {
return array();
}

$query = "SELECT id, name, description FROM $t_tag_table WHERE id IN ( " . implode( ', ', $t_subquery_results ) . ')';
} else {
$query = "SELECT id, name, description FROM $t_tag_table WHERE id IN (
2 changes: 1 addition & 1 deletion csv_export.php
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@
# Make sure that IE can download the attachments under https.
header( 'Pragma: public' );

header( 'Content-Type: text/plain; name=' . urlencode( file_clean_name( $t_filename ) ) );
header( 'Content-Type: text/csv; name=' . urlencode( file_clean_name( $t_filename ) ) );
header( 'Content-Transfer-Encoding: BASE64;' );

# Added Quotes (") around file name.