From 5096f8a0dbb0f879f7d672067b5fca945076f66e Mon Sep 17 00:00:00 2001 From: v-dumas Date: Mon, 10 Nov 2025 15:56:44 +0100 Subject: [PATCH 1/2] =?UTF-8?q?N=C2=B08845=20-=20Set=20request=5Ftype=20re?= =?UTF-8?q?gardless=20of=20User=20rights?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../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 7bb0b8bb16..470758ca4c 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", $iSvcSubcat, true, true); + $this->Set('request_type', $oSvcSubcat->Get('request_type'); } } From dee4ae8cd89f259cbd35404825baeac0c218d13e Mon Sep 17 00:00:00 2001 From: Vincent Dumas <42336698+v-dumas@users.noreply.github.com> Date: Thu, 13 Nov 2025 11:40:36 +0100 Subject: [PATCH 2/2] Update datamodels/2.x/itop-request-mgmt/datamodel.itop-request-mgmt.xml 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 470758ca4c..ee6b03b5ff 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) { - $oSvcSubcat = MetaModel::GetObject("ServiceSubcategory", $iSvcSubcat, true, true); - $this->Set('request_type', $oSvcSubcat->Get('request_type'); + $oSvcSubcat = MetaModel::GetObject(ServiceSubcategory::class, $iSvcSubcat, true, true); + $this->Set('request_type', $oSvcSubcat->Get('request_type'); } }