mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-21 16:22:20 +02:00
N°1976 - Duplicate Service on Customer Contract - formating code
This commit is contained in:
@@ -1643,9 +1643,9 @@ public function PrefillSearchForm(&$aContextParam)
|
|||||||
$sOql = "SELECT lnkCustomerContractToService AS ccs WHERE ccs.customercontract_id=:customercontract_id AND ccs.service_id=:service_id";
|
$sOql = "SELECT lnkCustomerContractToService AS ccs WHERE ccs.customercontract_id=:customercontract_id AND ccs.service_id=:service_id";
|
||||||
$aQueryParams['customercontract_id'] = $oCustomerContracts->Get("customercontract_id");
|
$aQueryParams['customercontract_id'] = $oCustomerContracts->Get("customercontract_id");
|
||||||
$aQueryParams['service_id'] = $oCustomerContracts->Get("service_id");
|
$aQueryParams['service_id'] = $oCustomerContracts->Get("service_id");
|
||||||
if($this->Get("id")!=null)
|
if ($this->Get("id") != null)
|
||||||
{
|
{
|
||||||
$sOql=$sOql." AND ccs.sla_id!=:sla_id";
|
$sOql = $sOql." AND ccs.sla_id!=:sla_id";
|
||||||
$aQueryParams['sla_id'] = $this->Get("id");
|
$aQueryParams['sla_id'] = $this->Get("id");
|
||||||
}
|
}
|
||||||
$oQuery = DBSearch::FromOQL($sOql, $aQueryParams);
|
$oQuery = DBSearch::FromOQL($sOql, $aQueryParams);
|
||||||
|
|||||||
@@ -1637,9 +1637,9 @@ public function PrefillSearchForm(&$aContextParam)
|
|||||||
$sOql = "SELECT lnkCustomerContractToService AS ccs WHERE ccs.customercontract_id=:customercontract_id AND ccs.service_id=:service_id";
|
$sOql = "SELECT lnkCustomerContractToService AS ccs WHERE ccs.customercontract_id=:customercontract_id AND ccs.service_id=:service_id";
|
||||||
$aQueryParams['customercontract_id'] = $oCustomerContracts->Get("customercontract_id");
|
$aQueryParams['customercontract_id'] = $oCustomerContracts->Get("customercontract_id");
|
||||||
$aQueryParams['service_id'] = $oCustomerContracts->Get("service_id");
|
$aQueryParams['service_id'] = $oCustomerContracts->Get("service_id");
|
||||||
if($this->Get("id")!=null)
|
if ($this->Get("id") != null)
|
||||||
{
|
{
|
||||||
$sOql=$sOql." AND ccs.sla_id!=:sla_id";
|
$sOql = $sOql." AND ccs.sla_id!=:sla_id";
|
||||||
$aQueryParams['sla_id'] = $this->Get("id");
|
$aQueryParams['sla_id'] = $this->Get("id");
|
||||||
}
|
}
|
||||||
$oQuery = DBSearch::FromOQL($sOql, $aQueryParams);
|
$oQuery = DBSearch::FromOQL($sOql, $aQueryParams);
|
||||||
|
|||||||
Reference in New Issue
Block a user