View Issue Details

IDProjectCategoryView StatusLast Update
0026353mantisbttaggingpublic2019-12-09 04:31
Reporterdregad Assigned Todregad  
Status closedResolutionfixed 
Target Version2.23.0Fixed in Version2.23.0 
Summary0026353: Tag attachments list includes tags already attached to the bug

tag_get_candidates_for_bug(), returns a list of tags including those already attached to the specified issue, in contradiction with the function's documentation.

Steps To Reproduce
  • attach a couple of tags to an issue
  • open the Existing tags dropdown
  • the added tags are still listed in the selection list
TagsNo tags attached.


Related Changesets

MantisBT: master 8c050ab6

2019-11-21 06:37


Committer: GitHub

Details Diff
Do not return tags already attached to the bug

The SQL in tag_get_candidates_for_bug() was incorrect, causing the
function to always return all available tags, instead of excluding those
already attached to the bug.

Fixes 0026353
Affected Issues
mod - core/tag_api.php Diff File