View Issue Details

IDProjectCategoryView StatusLast Update
0033402mantisbtapi restpublic2024-02-20 16:58
Reporterlam000 Assigned Tocommunity  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.26.0 
Target Version2.26.1Fixed in Version2.26.1 
Summary0033402: Updating an Issue through the API sets all comments last edit timestamp
Description

When updating an Issue trough the api, doesnt matter rest or soap, all bug notes included in the payload get an edited timestamp even if they didn't change

Steps To Reproduce

1) Create a new Issue
2) Add about 3-4 comments
3) update the issue through the api
4) all comments except the first one get a last edited timestamp

TagsNo tags attached.

Activities

lam000

lam000

2023-12-04 13:13

reporter   ~0068387

fix PR: https://github.com/mantisbt/mantisbt/pull/1952

dregad

dregad

2023-12-05 03:19

developer   ~0068388

Good catch ! And thanks for the PR.

Related Changesets

MantisBT: master-2.26 e03d0f63

2023-12-04 13:03

lam000

Committer: dregad


Details Diff
REST: only update bugnote timestamp when changed

Prior to this, any bugnote provided in the Issue PATCH request's body
would see its timestamp updated, even if there was no actual change to
the bugnote's data.

Fixes 0033402, PR https://github.com/mantisbt/mantisbt/pull/1952

Signed-off-by: Damien Regad <dregad@mantisbt.org>
Affected Issues
0033402
mod - api/soap/mc_issue_api.php Diff File