Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: mantisbt/mantisbt
base: ca4da39
...
head fork: mantisbt/mantisbt
compare: 277681c
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on Oct 05, 2011
@rombert rombert Correct tag retrieval on SQL Server when no tags are defined
Fix #13363 : Application Failure when trying to select an issue
47a2de4
@rombert rombert Fix #13370 : CSV export specifies incorrect MIME type
Conflicts:
	csv_export.php
277681c
Showing with 6 additions and 1 deletion.
  1. +5 −0 core/tag_api.php
  2. +1 −1  csv_export.php
View
5 core/tag_api.php
@@ -439,6 +439,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 (
View
2  csv_export.php
@@ -69,7 +69,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.

No commit comments for this range

Something went wrong with that request. Please try again.