View Issue Details

IDProjectCategoryView StatusLast Update
0004215mantisbtrelationshipspublic2004-08-29 02:16
Reporterjferraz Assigned Tothraxisp  
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionfixed 
Product Version0.19.0a2 
Summary0004215: Malformed HTML
Description

In core/relationship_api.php, function relationship_get_details, there is a spare unclosed column after the related bug number, on:

if ( $p_html_preview == false ) {
$t_relationship_info_html .= '<td><a href="' . string_get_bug_view_url( $t_related_bug_id ) . '">' . bug_format_id( $t_related_bug_id ) . '</a>' . $t_td;
$t_relationship_info_html .= '<td bgcolor="' . get_status_color( $t_bug->status ) . '">' . $t_status . ' </td>' . $t_td;
}
else {
...
}

Note that the first line has a leading $t_td, and the second line has another <td bgcolor...>.

Since due to this spare column, this table has a total of 6 columns, and below, in the function relationship_get_summary_html, there is a line with uses colspan="5" to display lang_get( 'relationship_warning_blocking_bugs_not_resolved' ). So this line breaks before the right edge of the table, and this was how I found this bug.

TagsNo tags attached.
Attached Files
rel_table.diff (555 bytes)   
Index: core/relationship_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/relationship_api.php,v
retrieving revision 1.14
diff -r1.14 relationship_api.php
398c398
< 					$t_relationship_info_html .= '<td><a href="' . string_get_bug_view_url( $t_related_bug_id ) . '">' . bug_format_id( $t_related_bug_id ) . '</a>' . $t_td;
---
> 					$t_relationship_info_html .= '<td><a href="' . string_get_bug_view_url( $t_related_bug_id ) . '">' . bug_format_id( $t_related_bug_id ) . '</a></td>';
rel_table.diff (555 bytes)   

Relationships

child of 0003987 closedvboctor Mantis 0.19.0 Release 

Activities

thraxisp

thraxisp

2004-07-28 21:02

reporter   ~0006431

Last edited: 2004-07-28 21:06

I've attached a patch. (Embedding it loses most of the text).

edited on: 07-28-04 21:06

vboctor

vboctor

2004-07-29 00:22

manager   ~0006432

thraxisp, can you please commit the change and mark the issue as resolved. Thanks.

thraxisp

thraxisp

2004-07-29 05:45

reporter   ~0006435

fixed in CVS