View Issue Details

IDProjectCategoryView StatusLast Update
0024115mantisbthtmlpublic2018-03-21 09:10
Reportercbspencer Assigned To 
Status newResolutionopen 
PlatformPCOSWindowsOS Version7
Product Version2.11.1 
Summary0024115: Style bugnote-public used but not defined

In ./core/bug_activity_api.php, style bugnote-public is used as follows:

    if( $t_activity['private'] ) {
        $t_activity['style'] .= ' bugnote-private';
    } else {
        $t_activity['style'] .= ' bugnote-public';

This seems to be the only place in the MantisBT code that bugnote-public is referenced. However, it does not appear to be defined in any of the CSS files. Style bugnote-private is defined in default.css.

v2.12.0 also has the same omission.

We discovered this omission after upgrading from v1.2.18 to v2.11.1, and some Activities were displayed improperly (left column was ~75% and right column was ~25% of window width) when viewing issues in IE 11 or Chrome 64/65 (but does not occur in FireFox 58/59). During debugging, when we either provided a definition for bugnote-public in default.css or removed the lines referencing bugnote-public, the Activities displayed properly.

Steps To Reproduce

As described above.

Additional Information

Screenshot attached, showing Activities being displayed incorrectly.

TagsNo tags attached.




2018-03-14 11:33


mantis_bug_report.png (158,785 bytes)   
mantis_bug_report.png (158,785 bytes)   


2018-03-21 03:18

manager   ~0059257

The styling of your screenshot seems inconsistent with the standard UI. Feel free to submit a PR with the fix.



2018-03-21 09:10

reporter   ~0059264

Fix provided in the original problem description. I'm not sure what a PR is, so please do what you want with the fix provided.