Skip to content

Commit d098a5e

Browse files
v-dumasHipska
andauthored
N°8845 - Set request_type regardless of User rights (#777)
* 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 <[email protected]> --------- Co-authored-by: Thomas Casteleyn <[email protected]>
1 parent dd82950 commit d098a5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datamodels/2.x/itop-request-mgmt/datamodel.itop-request-mgmt.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,8 +1333,8 @@
13331333
$iSvcSubcat = $this->Get('servicesubcategory_id');
13341334
if ($iSvcSubcat != 0)
13351335
{
1336-
$sType = $this->Get('servicesubcategory_id->request_type');
1337-
$this->Set('request_type', $sType);
1336+
$oSvcSubcat = MetaModel::GetObject(ServiceSubcategory::class, $iSvcSubcat, true, true);
1337+
$this->Set('request_type', $oSvcSubcat->Get('request_type');
13381338
}
13391339
}
13401340

0 commit comments

Comments
 (0)