View Issue Details

IDProjectCategoryView StatusLast Update
0028606mantisbtadministrationpublic2023-10-31 16:32
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.20.0 
Target Version2.26.0Fixed in Version2.26.0 
Summary0028606: Incorrect filtering of users on Manage Project / Accounts
Description

Issue 0005151 introduced filtering and sorting functionality for Accounts on Manage Project page.

The filter sometimes fails to exclude rows, as shown in attached screenshot where both rows should be hidden as none of the key fields (Username, E-mail and Access Level) contain the string ma.

TagsNo tags attached.
Attached Files
not_filtered.png (42,718 bytes)   
not_filtered.png (42,718 bytes)   

Relationships

related to 0005151 closeddregad Can't update user's project-specific access level 
child of 0030551 closeddregad Project Edit Page improvements 

Activities

dregad

dregad

2021-05-19 05:47

developer   ~0065533

Looking at our (javascript code](https://github.com/mantisbt/mantisbt/blob/release-2.25.1/js/manage_proj_edit_page.js#L93), the list.js object is configured to use the key-email column, which contains an anchor tag with a mailto: link, so the filter / sort actually applies to the whole markup user@example.com instead of just the raw data (e-mail address).

dregad

dregad

2022-06-02 07:51

developer   ~0066669

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

Related Changesets

MantisBT: master aa1d2b6c

2021-05-19 07:03

dregad


Details Diff
Fix filtering on Manage Project Accounts

Add a data-sortvalue attribute on the key-email field, so the List.js
filter uses that instead of the HTML markup with anchor.

Fixes 0028606
Affected Issues
0028606
mod - js/manage_proj_edit_page.js Diff File
mod - manage_proj_edit_page.php Diff File