diff --git a/core/ormcaselog.class.inc.php b/core/ormcaselog.class.inc.php index d9ec1dcfa..394dbf9e2 100644 --- a/core/ormcaselog.class.inc.php +++ b/core/ormcaselog.class.inc.php @@ -639,12 +639,12 @@ class ormCaseLog { } - public function GetModifiedEntry() + public function GetModifiedEntry($sFormat = 'text') { $sModifiedEntry = ''; if ($this->m_bModified) { - $sModifiedEntry = $this->GetLatestEntry(); + $sModifiedEntry = $this->GetLatestEntry($sFormat); } return $sModifiedEntry; } diff --git a/datamodels/2.x/itop-incident-mgmt-itil/datamodel.itop-incident-mgmt-itil.xml b/datamodels/2.x/itop-incident-mgmt-itil/datamodel.itop-incident-mgmt-itil.xml index 9ed41c2cf..c6865df61 100755 --- a/datamodels/2.x/itop-incident-mgmt-itil/datamodel.itop-incident-mgmt-itil.xml +++ b/datamodels/2.x/itop-incident-mgmt-itil/datamodel.itop-incident-mgmt-itil.xml @@ -1229,7 +1229,7 @@ if (!MetaModel::IsValidClass('UserRequest')) return true; // Do nothing $oLog = $this->Get('public_log'); - $sLogPublic = $oLog->GetModifiedEntry(); + $sLogPublic = $oLog->GetModifiedEntry('html'); if ($sLogPublic != '') { $sOQL = "SELECT UserRequest WHERE parent_incident_id=:ticket"; @@ -1247,7 +1247,7 @@ } $oLog = $this->Get('private_log'); - $sLogPrivate = $oLog->GetModifiedEntry(); + $sLogPrivate = $oLog->GetModifiedEntry('html'); if ($sLogPrivate != '') { $sOQL = "SELECT UserRequest WHERE parent_incident_id=:ticket"; @@ -1274,7 +1274,7 @@ Get('public_log'); - $sLogPublic = $oLog->GetModifiedEntry(); + $sLogPublic = $oLog->GetModifiedEntry('html'); if ($sLogPublic != '') { $sOQL = "SELECT Incident WHERE parent_incident_id=:ticket"; @@ -1292,7 +1292,7 @@ } $oLog = $this->Get('private_log'); - $sLogPrivate = $oLog->GetModifiedEntry(); + $sLogPrivate = $oLog->GetModifiedEntry('html'); if ($sLogPrivate != '') { $sOQL = "SELECT Incident WHERE parent_incident_id=:ticket"; diff --git a/datamodels/2.x/itop-request-mgmt-itil/datamodel.itop-request-mgmt-itil.xml b/datamodels/2.x/itop-request-mgmt-itil/datamodel.itop-request-mgmt-itil.xml index cc3fbcafd..2cdda4947 100755 --- a/datamodels/2.x/itop-request-mgmt-itil/datamodel.itop-request-mgmt-itil.xml +++ b/datamodels/2.x/itop-request-mgmt-itil/datamodel.itop-request-mgmt-itil.xml @@ -1325,7 +1325,7 @@ Get('public_log'); - $sLogPublic = $oLog->GetModifiedEntry(); + $sLogPublic = $oLog->GetModifiedEntry('html'); if ($sLogPublic != '') { $sOQL = "SELECT UserRequest WHERE parent_request_id=:ticket"; @@ -1343,7 +1343,7 @@ } $oLog = $this->Get('private_log'); - $sLogPrivate = $oLog->GetModifiedEntry(); + $sLogPrivate = $oLog->GetModifiedEntry('html'); if ($sLogPrivate != '') { $sOQL = "SELECT UserRequest WHERE parent_request_id=:ticket"; 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 a58a45760..7c6ecd31a 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 @@ -1338,7 +1338,7 @@ Get('public_log'); - $sLogPublic = $oLog->GetModifiedEntry(); + $sLogPublic = $oLog->GetModifiedEntry('html'); if ($sLogPublic != '') { $sOQL = "SELECT UserRequest WHERE parent_request_id=:ticket"; @@ -1356,7 +1356,7 @@ } $oLog = $this->Get('private_log'); - $sLogPrivate = $oLog->GetModifiedEntry(); + $sLogPrivate = $oLog->GetModifiedEntry('html'); if ($sLogPrivate != '') { $sOQL = "SELECT UserRequest WHERE parent_request_id=:ticket"; diff --git a/datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml b/datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml index f988819fa..22686d1e3 100755 --- a/datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml +++ b/datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml @@ -698,7 +698,7 @@ Get('log'); - $sLog = $oLog->GetModifiedEntry(); + $sLog = $oLog->GetModifiedEntry('html'); if ($sLog != '') { $oTicket = MetaModel::GetObject('Ticket', $this->Get('ticket_id'), false);