MantisBT: master 94aa0058

Author Committer Branch Timestamp Parent
dregad dregad master 2015-09-02 02:47 master 5e12bf98
Affected Issues  0020068: No color applied to status enums with spaces in status values
Changeset

Generate valid CSS/class name for custom status with spaces

Prior to this, for a custom status 'in progress', Mantis would generate
the following invalid code:

  • HTML (class name): class="small-caption in progress-color"
  • Dynamic CSS (status_config.php): .in progress-color { ... }

We now rely on a new API function html_get_css_identifier() to generate
a valid CSS class name by replacing invalid characters with '-'.

Fixes 0020068

mod - core/html_api.php Diff File
mod - css/status_config.php Diff File