View Issue Details

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

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.

Activities

Related Changesets

MantisBT: master 8c050ab6

2019-11-21 06:37

dregad

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
PR https://github.com/mantisbt/mantisbt/pull/1579
Affected Issues
0026353
mod - core/tag_api.php Diff File