View Issue Details

IDProjectCategoryView StatusLast Update
0014412mantisbtapi soappublic2013-04-06 07:26
ReporterCrayon Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.11 
Target Version1.2.12Fixed in Version1.2.12 
Summary0014412: Calling mc_issue_update creates erroneous "Note View State changed" items in history (issue 0013377 not fixed)
Description

This is the exact same problem has issue 0013377. I think it has not been fixed correctly.

Here is the code I'm using in C++Builder:
_di_MantisConnectPortType Mantis = GetMantisConnectPortType();
IssueData* Issue;
Issue = Mantis->mc_issue_get(USER, PASS, 12938);
Issue->status->id = 80; // resolved
Issue->resolution->id = 20; // fixed
Mantis->mc_issue_update(USER, PASS, 12938, Issue);

I have used this code for this bug: http://www.mantisbt.org/demo/view.php?id=12938
Look at all the changes at 2012-06-23 00:13 by cpsworld.

TagsNo tags attached.
Attached Files
IssueUpdaterForDemo.zip (1,827,538 bytes)

Relationships

related to 0013377 closedrombert Calling mc_issue_update creates erroneous "Note View State changed" items in history 
related to 0015721 closedgrangeway Functionality to consider porting to master-2.0.x 

Activities

Crayon

Crayon

2012-06-23 01:12

reporter   ~0032159

In case it's needed I attached the file IssueUpdaterForDemo.zip. It's a simple Windows program with the code above that will update an issue from the demo web site (http://www.mantisbt.org/demo).

The program could be modified if required.

dregad

dregad

2012-07-02 11:55

developer   ~0032223

This was caused by a type-strict comparison of the value returned by the
api (string) to an integer.

grangeway

grangeway

2013-04-05 17:56

reporter   ~0036131

Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch

Related Changesets

MantisBT: master 5273c401

2012-07-02 04:34

dregad


Details Diff
SOAP API: calling mc_issue_update unduly updated bugnotes

History shows 'Note View State changed' even though it has not been
modified, and if time tracking is enabled the bugnote's last_updated
date is changed.

This was caused by a type-strict comparison of the value returned by the
api (string) to an integer.

Fixes 0014412
Affected Issues
0014412
mod - api/soap/mc_issue_api.php Diff File

MantisBT: master-1.2.x 802e5596

2012-07-02 04:34

dregad


Details Diff
SOAP API: calling mc_issue_update unduly updated bugnotes

History shows 'Note View State changed' even though it has not been
modified, and if time tracking is enabled the bugnote's last_updated
date is changed.

This was caused by a type-strict comparison of the value returned by the
api (string) to an integer.

Fixes 0014412
Affected Issues
0014412
mod - api/soap/mc_issue_api.php Diff File