View Issue Details

IDProjectCategoryView StatusLast Update
0034607mantisbtadministrationpublic2024-09-07 10:43
Reporteramphetamine Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformWindowsOSWindowsOS Version11
Product Version1.3.0 
Target Version2.27.0Fixed in Version2.27.0 
Summary0034607: Incorrect Workflow Graph display if the status name contains a space
Description

manage>configuration>workflow graph
manage_config_workflow_graph_page.php

TagsNo tags attached.
Attached Files
display error.png (18,379 bytes)   
display error.png (18,379 bytes)   

Relationships

related to 0012253 closed Graphviz Graph to display workflow - PATCH 
related to 0034611 resolveddregad Allow HTML-like labels in relationship graphs 

Activities

amphetamine

amphetamine

2024-09-02 01:22

reporter   ~0069136

typo
It's status, not category name.

dregad

dregad

2024-09-02 09:48

developer   ~0069139

Problem confirmed on latest master. Probably exists ever since the feature was introduced back in 2010 (0012253).

dregad

dregad

2024-09-02 12:56

developer   ~0069143

GraphViz can process HTML labels, but this requires special formatting when generating the markup, see 0034611

dregad

dregad

2024-09-02 13:06

developer   ~0069144

The initial attempt to fix this by generating an HTML-like label failed, because GraphViz's "HTML-like" labels only allow a limited set of tags [1] and the <span class="nowrap"> inserted by string_nobreak() is not one of them.

So the only way to fix this is to remove that function call, which should not cause any problems because Graphviz will not wrap text unless a newline \n is inserted in the label.

dregad

dregad

2024-09-02 18:47

developer   ~0069148

PR https://github.com/mantisbt/mantisbt/pull/2024

Related Changesets

MantisBT: master 2e81aa88

2024-09-02 13:06

dregad


Details Diff
Fix workflow labels with space displayed as HTML

The initial attempt to fix this by generating an HTML-like label failed,
because GraphViz's "HTML-like" labels only allow a limited set of tags
and the `<span class="nowrap">` inserted by string_nobreak() is not one
of them.

So the only way to fix this is to remove that function call, which
should not cause any problems, because Graphviz will not wrap text
unless a newline `\n` is inserted in the label.

Fixes 0034607
Affected Issues
0034607
mod - workflow_graph_img.php Diff File