From d6f58d04f1a15bf046f9d3ff2d7d65d8da3e975d Mon Sep 17 00:00:00 2001 From: vdumas Date: Mon, 25 Apr 2022 15:07:56 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B04702=20-=20DataModel=20:=20wrong=20attri?= =?UTF-8?q?bute=20type=20for=20SLA.customercontracts=5Flist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../datamodel.itop-service-mgmt.xml | 36 +------------------ 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/datamodels/2.x/itop-service-mgmt/datamodel.itop-service-mgmt.xml b/datamodels/2.x/itop-service-mgmt/datamodel.itop-service-mgmt.xml index ca3473a60..561feef77 100755 --- a/datamodels/2.x/itop-service-mgmt/datamodel.itop-service-mgmt.xml +++ b/datamodels/2.x/itop-service-mgmt/datamodel.itop-service-mgmt.xml @@ -1580,41 +1580,7 @@ public function PrefillSearchForm(&$aContextParam) none - - - false - public - Get("customercontracts_list"); - foreach ($aCustomerContracts as $sAttCode => $oCustomerContracts) - { - // Recurse inside the subdirectories - $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['service_id'] = $oCustomerContracts->Get("service_id"); - if ($this->Get("id") != null) - { - $sOql = $sOql." AND ccs.sla_id!=:sla_id"; - $aQueryParams['sla_id'] = $this->Get("id"); - } - $oQuery = DBSearch::FromOQL($sOql, $aQueryParams); - $oResultSql = new DBObjectSet($oQuery); - $oResultSql->OptimizeColumnLoad(['ccs' => ['customercontract_name','service_name']]); - if ($aCurrentRow = $oResultSql->Fetch()) - { - $this->m_aCheckIssues[] = Dict::Format('Class:SLA/Error:UniqueLnkCustomerContractToService',$aCurrentRow->Get('customercontract_name'),$aCurrentRow->Get('service_name')); - } - } - */ - } - ]]> - - +