|
From: Robert M. <rob...@gm...> - 2012-08-04 14:58:29
|
Hi Antia, On Fri, Aug 3, 2012 at 5:35 PM, antia <ant...@gm...> wrote: > Hej : > > I am trying add issues from mantis SOAP interface. > When I use mc_project_update to update a existed project, even if I just > sent an array just include project name, I found other information about the > project got modified ex: view status and status. those two fields show @1@ > when I checked on the mantis Manage> Manage Project view. > > This is the array I sent : > > $aproject= array( > 'name'=>'New project add on mantis', //required field > ); > > as you see just a simple array Looks like a bug to be, please file on at www.mantisbt.org/bugs/ ( api soap category ) > > Another problem I encounter is when I uesed mc_issue_note_update, if I > include view_state this element in the array i send to update the issue, no > matter what is the contents inside the view state of the issue note will > just become "private" even if the array was like this > > $aNote= array( > 'id'=>6, //issue note id > 'view_state'=> array('id'=>'10', 'name'=>''), > 'text'=>'another update new note from SOAP ', > ); > > > according to what I got from mc_enum_view_states to set view state to public > should be id=>10, but it just set it to "private". Are you sure that this works? Currently mc_issue_update always expects some fields to be set ( altough that should change, I think ) // fields which we expect to always be set $t_bug_data = bug_get( $p_issue_id, true ); $t_bug_data->project_id = $t_project_id; $t_bug_data->reporter_id = $t_reporter_id; $t_bug_data->handler_id = $t_handler_id; $t_bug_data->category_id = $t_category_id; $t_bug_data->summary = $t_summary; $t_bug_data->description = $t_description; Robert Thanks, Robert > > My mantis version is 1.2.11 > PHP Version 5.3.14 > MySQL 5.5.25a > > I am pretty new for SOAP, so hope someone can help me. > > Thank you > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Mantisbt-soap-dev mailing list > Man...@li... > https://lists.sourceforge.net/lists/listinfo/mantisbt-soap-dev > -- Sent from my (old) computer |