Skip to content

Commit

Permalink
Fix #14811: XML error in summary page
Browse files Browse the repository at this point in the history
The error occured with Project or Category Name contained special chars
  • Loading branch information
dregad committed Oct 11, 2012
1 parent 570d031 commit c78c586
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions core/summary_api.php
Expand Up @@ -680,7 +680,10 @@ function summary_print_by_category() {
$t_bugs_total = $t_bug_link . '&amp;' . FILTER_PROPERTY_HIDE_STATUS . '=">' . $t_bugs_total . '</a>';
}

summary_helper_print_row( $label, $t_bugs_open, $t_bugs_resolved, $t_bugs_closed, $t_bugs_total );
summary_helper_print_row(
string_display_line( $label ),
$t_bugs_open, $t_bugs_resolved, $t_bugs_closed, $t_bugs_total
);

$t_bugs_open = 0;
$t_bugs_resolved = 0;
Expand Down Expand Up @@ -727,7 +730,10 @@ function summary_print_by_category() {
}
}

summary_helper_print_row( $label, $t_bugs_open, $t_bugs_resolved, $t_bugs_closed, $t_bugs_total );
summary_helper_print_row(
string_display_line( $label ),
$t_bugs_open, $t_bugs_resolved, $t_bugs_closed, $t_bugs_total
);
}
}

Expand Down Expand Up @@ -797,7 +803,10 @@ function summary_print_by_project( $p_projects = null, $p_level = 0, $p_cache =
$t_bugs_closed = isset( $t_pdata['closed'] ) ? $t_pdata['closed'] : 0;
$t_bugs_total = $t_bugs_open + $t_bugs_resolved + $t_bugs_closed;

summary_helper_print_row( $t_name, $t_bugs_open, $t_bugs_resolved, $t_bugs_closed, $t_bugs_total );
summary_helper_print_row(
string_display_line( $t_name ),
$t_bugs_open, $t_bugs_resolved, $t_bugs_closed, $t_bugs_total
);

if ( count( project_hierarchy_get_subprojects ( $t_project ) ) > 0 ) {
$t_subprojects = current_user_get_accessible_subprojects( $t_project );
Expand Down

0 comments on commit c78c586

Please sign in to comment.