From d098a5eb877b8d4e73db158da3f3b516b560fe2b Mon Sep 17 00:00:00 2001 From: Vincent Dumas <42336698+v-dumas@users.noreply.github.com> Date: Fri, 14 Nov 2025 09:05:54 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B08845=20-=20Set=20request=5Ftype=20regard?= =?UTF-8?q?less=20of=20User=20rights=20(#777)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * N°8845 - Set request_type regardless of User rights * Update datamodels/2.x/itop-request-mgmt/datamodel.itop-request-mgmt.xml Co-authored-by: Thomas Casteleyn --------- Co-authored-by: Thomas Casteleyn --- .../2.x/itop-request-mgmt/datamodel.itop-request-mgmt.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datamodels/2.x/itop-request-mgmt/datamodel.itop-request-mgmt.xml b/datamodels/2.x/itop-request-mgmt/datamodel.itop-request-mgmt.xml index 7bb0b8bb1..ee6b03b5f 100755 --- a/datamodels/2.x/itop-request-mgmt/datamodel.itop-request-mgmt.xml +++ b/datamodels/2.x/itop-request-mgmt/datamodel.itop-request-mgmt.xml @@ -1333,8 +1333,8 @@ $iSvcSubcat = $this->Get('servicesubcategory_id'); if ($iSvcSubcat != 0) { - $sType = $this->Get('servicesubcategory_id->request_type'); - $this->Set('request_type', $sType); + $oSvcSubcat = MetaModel::GetObject(ServiceSubcategory::class, $iSvcSubcat, true, true); + $this->Set('request_type', $oSvcSubcat->Get('request_type'); } }