View Issue Details

IDProjectCategoryView StatusLast Update
0035471mantisbtuipublic2025-03-01 18:40
Reporterdregad Assigned Todregad  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Target Version2.27.1Fixed in Version2.27.1 
Summary0035471: Incorrect styling of Plugin Filter Fields
Description

Plugins can hook EVENT_FILTER_FIELDS to add custom filter fields (e.g. FilterBugList).

These fields are not displayed with standard MantisBT styling. For example in the attached screenshot, the FILTER_TYPE_STRING Bug List text input (framed in red) is barely visible - compare that with the one from the Relationships filter (green frame) which has the correct style.

Exact same problem occurs with FILTER_TYPE_INT.

With FILTER_TYPE_BOOLEAN, the checkbox input is not using ACE style.

Additional Information

I noticed the problem while reviewing PR https://github.com/mantisbt/mantisbt/pull/2056 to fix 0035179

TagsNo tags attached.
Attached Files
image.png (18,328 bytes)   
image.png (18,328 bytes)   

Relationships

related to 0035179 closeddregad Could not use plugins filters with "Permalink" 

Activities

Related Changesets

MantisBT: master-2.27 cbfa41c5

2025-02-25 19:18

dregad


Details Diff
Fix styling of MantisFilter fields

Due to a missing type attribute or class in the input tags generated by
print_filter_plugin_field(), the filter field is displayed with
incorrect styling for FILTER_TYPE_STRING, FILTER_TYPE_INT and
FILTER_TYPE_BOOLEAN.

Fixes 0035471
Affected Issues
0035471
mod - core/filter_form_api.php Diff File