View Issue Details

IDProjectCategoryView StatusLast Update
0009472mantisbtapi soappublic2016-07-21 15:33
Reporterrbendig Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.1.1 
Fixed in Version1.2.0rc1 
Summary0009472: Issues updating duplicates notes
Description

Hi,

first of all, i don't think this bug is related to 0008725. The result is the same, the notes are duplicated. :-(

I am using c# to communicate with the api. My code looks like this:

    private static void CloseIssue(Issue issue)
    {
        var bugs = new MantisConnect();

        var data = bugs.mc_issue_get(
            MISettings.MantisConnectUser,
            MISettings.MantisConnectPassword,
            issue.Id.ToString());

        var closeIt = new ObjectRef {id = "90"};

        data.status = closeIt;

        bugs.mc_issue_update(
            MISettings.MantisConnectUser,
            MISettings.MantisConnectPassword,
            issue.Id.ToString(),
            data);
    }

i tried plansers code like mentioned in bug 0008725 bug IssueData does not provide any function like data.SetNotes or similar.

what's my error?

Tagssoap

Activities

vboctor

vboctor

2009-04-13 00:36

manager   ~0021483

The bug was that mc_issue_update() was adding all the notes, even the ones that already had an id set (meaning they were retrieved from a previous call to mc_issue_get).

rbendig

rbendig

2009-04-14 03:00

reporter   ~0021506

Hi vboctor,

i assume the fix will be relased in 1.2 and not in 1.1.7?

Thanks for fixing it :-)