mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-10-12 15:04:04 +00:00
Mantis Schnittstelle korrigiert
- Reporter ändert sich beim Update nicht mehr - Authentifizierungsproblem behoben
This commit is contained in:
@@ -93,6 +93,7 @@ class mantis extends basis_db
|
|||||||
'status'=>array('id'=>$this->issue_status->id),
|
'status'=>array('id'=>$this->issue_status->id),
|
||||||
'priority'=>array('id'=>$this->issue_priority->id),
|
'priority'=>array('id'=>$this->issue_priority->id),
|
||||||
'additional_information'=>$this->issue_additional_information,
|
'additional_information'=>$this->issue_additional_information,
|
||||||
|
'reporter'=>array('id'=>$this->issue_reporter_id),
|
||||||
);
|
);
|
||||||
|
|
||||||
$params=array('username' => MANTIS_USERNAME, 'password' => MANTIS_PASSWORT,'issueId' => $this->issue_id, $issue);
|
$params=array('username' => MANTIS_USERNAME, 'password' => MANTIS_PASSWORT,'issueId' => $this->issue_id, $issue);
|
||||||
@@ -182,6 +183,7 @@ class mantis extends basis_db
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
$params=array('username' => MANTIS_USERNAME, 'password' => MANTIS_PASSWORT);
|
$params=array('username' => MANTIS_USERNAME, 'password' => MANTIS_PASSWORT);
|
||||||
|
|
||||||
$result = $this->soapClient->__soapCall('mc_projects_get_user_accessible',$params);
|
$result = $this->soapClient->__soapCall('mc_projects_get_user_accessible',$params);
|
||||||
|
|
||||||
foreach($result as $row)
|
foreach($result as $row)
|
||||||
|
|||||||
@@ -20,7 +20,9 @@
|
|||||||
require_once('../config/vilesci.config.inc.php');
|
require_once('../config/vilesci.config.inc.php');
|
||||||
require_once('../include/rdf.class.php');
|
require_once('../include/rdf.class.php');
|
||||||
require_once('../include/mantis.class.php');
|
require_once('../include/mantis.class.php');
|
||||||
|
require_once('../include/functions.inc.php');
|
||||||
|
|
||||||
|
get_uid();
|
||||||
$oRdf = new rdf('MANTIS_PROJECT','http://www.technikum-wien.at/mantis_project');
|
$oRdf = new rdf('MANTIS_PROJECT','http://www.technikum-wien.at/mantis_project');
|
||||||
$oRdf->sendHeader();
|
$oRdf->sendHeader();
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ require_once('../include/datum.class.php');
|
|||||||
require_once('../include/functions.inc.php');
|
require_once('../include/functions.inc.php');
|
||||||
require_once('../include/mantis.class.php');
|
require_once('../include/mantis.class.php');
|
||||||
|
|
||||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/projekttask.wsdl.php?".microtime());
|
$SOAPServer = new SoapServer(APP_ROOT."/soap/projekttask.wsdl.php?".microtime(true));
|
||||||
$SOAPServer->addFunction("saveProjekttask");
|
$SOAPServer->addFunction("saveProjekttask");
|
||||||
$SOAPServer->addFunction("deleteProjekttask");
|
$SOAPServer->addFunction("deleteProjekttask");
|
||||||
$SOAPServer->addFunction("saveMantis");
|
$SOAPServer->addFunction("saveMantis");
|
||||||
@@ -148,8 +148,9 @@ function deleteProjekttask($username, $passwort, $projekttask_id)
|
|||||||
return new SoapFault("Server", $projekttask->errormsg);
|
return new SoapFault("Server", $projekttask->errormsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveMantis($projekttask_id, $mantis_id, $issue_summary, $issue_description, $issue_view_state_id, $issue_view_state_name, $issue_last_udpated, $issue_project_id, $issue_projekt_name, $issue_category, $issue_priority_id, $issue_priority_name, $issue_severity_id, $issue_severity_name, $issue_status_id, $issue_status_name, $issue_reporter_name, $issue_reporter_real_name, $issue_reporter_email, $issue_reproducibility_id, $issue_reproducibility_name, $issue_date_submitted, $issue_sponsorship_total, $issue_projection_id, $issue_projection_name, $issue_eta_id, $issue_eta_name, $issue_resolution_id, $issue_resolution_name, $issue_due_date, $issue_steps_to_reproduce, $issue_additional_information)
|
function saveMantis($projekttask_id, $mantis_id, $issue_summary, $issue_description, $issue_view_state_id, $issue_view_state_name, $issue_last_udpated, $issue_project_id, $issue_projekt_name, $issue_category, $issue_priority_id, $issue_priority_name, $issue_severity_id, $issue_severity_name, $issue_status_id, $issue_status_name,$issue_reporter_id, $issue_reporter_name, $issue_reporter_real_name, $issue_reporter_email, $issue_reproducibility_id, $issue_reproducibility_name, $issue_date_submitted, $issue_sponsorship_total, $issue_projection_id, $issue_projection_name, $issue_eta_id, $issue_eta_name, $issue_resolution_id, $issue_resolution_name, $issue_due_date, $issue_steps_to_reproduce, $issue_additional_information)
|
||||||
{
|
{
|
||||||
|
get_uid();
|
||||||
$mantis = new mantis();
|
$mantis = new mantis();
|
||||||
|
|
||||||
if($mantis_id!='')
|
if($mantis_id!='')
|
||||||
@@ -164,6 +165,8 @@ function saveMantis($projekttask_id, $mantis_id, $issue_summary, $issue_descript
|
|||||||
$mantis->issue_priority->id = $issue_priority_id;
|
$mantis->issue_priority->id = $issue_priority_id;
|
||||||
$mantis->issue_steps_to_reproduce = $issue_steps_to_reproduce;
|
$mantis->issue_steps_to_reproduce = $issue_steps_to_reproduce;
|
||||||
$mantis->issue_additional_information = $issue_additional_information;
|
$mantis->issue_additional_information = $issue_additional_information;
|
||||||
|
$mantis->issue_reporter_name=$issue_reporter_name;
|
||||||
|
$mantis->issue_reporter_id=$issue_reporter_id;
|
||||||
|
|
||||||
if($mantis->updateIssue())
|
if($mantis->updateIssue())
|
||||||
return 'ok';
|
return 'ok';
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
|
|||||||
<wsdl:part name="issue_severity_name" type="xsd:string"></wsdl:part>
|
<wsdl:part name="issue_severity_name" type="xsd:string"></wsdl:part>
|
||||||
<wsdl:part name="issue_status_id" type="xsd:string"></wsdl:part>
|
<wsdl:part name="issue_status_id" type="xsd:string"></wsdl:part>
|
||||||
<wsdl:part name="issue_status_name" type="xsd:string"></wsdl:part>
|
<wsdl:part name="issue_status_name" type="xsd:string"></wsdl:part>
|
||||||
|
<wsdl:part name="issue_reporter_id" type="xsd:string"></wsdl:part>
|
||||||
<wsdl:part name="issue_reporter_name" type="xsd:string"></wsdl:part>
|
<wsdl:part name="issue_reporter_name" type="xsd:string"></wsdl:part>
|
||||||
<wsdl:part name="issue_reporter_real_name" type="xsd:string"></wsdl:part>
|
<wsdl:part name="issue_reporter_real_name" type="xsd:string"></wsdl:part>
|
||||||
<wsdl:part name="issue_reporter_email" type="xsd:string"></wsdl:part>
|
<wsdl:part name="issue_reporter_email" type="xsd:string"></wsdl:part>
|
||||||
|
|||||||
Reference in New Issue
Block a user