View Issue Details

IDProjectCategoryView StatusLast Update
0027704mantisbtjavascriptpublic2020-12-30 07:37
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version2.24.4Fixed in Version2.24.4 
Summary0027704: Javascript error in View Issues page
Description

When there are no saved filters available to the user, the source_query_id select is not printed.

Any event on the page, such as updating the current filter's criteria or ticking the checkboxes to select issues for group actions, triggers the following Javascript error

Uncaught TypeError: selected_text is undefined
    filter_named_filter_dirty http://localhost/mantis/js/bugFilter.js:103
    filter_field_dirty http://localhost/mantis/js/bugFilter.js:114
    filter_toggle_field_changed http://localhost/mantis/js/bugFilter.js:67
    filter_highlight_changes http://localhost/mantis/js/bugFilter.js:75
    <anonymous> http://localhost/mantis/js/bugFilter.js:51
    jQuery 8
    <anonymous> http://localhost/mantis/js/bootstrap-3.4.1.min.js:6
    <anonymous> http://localhost/mantis/js/bootstrap-3.4.1.min.js:6
bugFilter.js:103:6
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master 35568185

2020-12-06 19:03:34

dregad

Details Diff
Fix Javascript error in View Issue page

When there are no saved filters, 'source_query_id' is not defined, so
check for that and return to avoid the error.

Fixes 0027704
Affected Issues
0027704
mod - js/bugFilter.js Diff File