From 9586bd7dea044387650f055a6bf86a9b2a2a3316 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Tue, 23 Feb 2021 10:59:32 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B03629=20-=20Activity=20panel:=20Fix=20sta?= =?UTF-8?q?te=20attribute=20changes=20on=20a=20class=20without=20transitio?= =?UTF-8?q?n=20is=20now=20displayed=20as=20a=20"state=20change"=20instead?= =?UTF-8?q?=20of=20an=20"edit"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CMDBChangeOp/CMDBChangeOpSetAttributeScalarFactory.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sources/application/UI/Base/Layout/ActivityPanel/ActivityEntry/CMDBChangeOp/CMDBChangeOpSetAttributeScalarFactory.php b/sources/application/UI/Base/Layout/ActivityPanel/ActivityEntry/CMDBChangeOp/CMDBChangeOpSetAttributeScalarFactory.php index 227564f80..4a31b1148 100644 --- a/sources/application/UI/Base/Layout/ActivityPanel/ActivityEntry/CMDBChangeOp/CMDBChangeOpSetAttributeScalarFactory.php +++ b/sources/application/UI/Base/Layout/ActivityPanel/ActivityEntry/CMDBChangeOp/CMDBChangeOpSetAttributeScalarFactory.php @@ -44,9 +44,8 @@ class CMDBChangeOpSetAttributeScalarFactory extends CMDBChangeOpSetAttributeFact $sHostObjectClass = $oChangeOp->Get('objclass'); $sAttCode = $oChangeOp->Get('attcode'); - // Specific ActivityEntry for transition, otherwise just a regular EditsEntry - if(MetaModel::HasLifecycle($sHostObjectClass) && ($sAttCode === MetaModel::GetStateAttributeCode($sHostObjectClass))) - { + // Specific ActivityEntry for state changes, otherwise just a regular EditsEntry + if (MetaModel::HasStateAttributeCode($sHostObjectClass) && ($sAttCode === MetaModel::GetStateAttributeCode($sHostObjectClass))) { $oDateTime = DateTime::createFromFormat(AttributeDateTime::GetInternalFormat(), $oChangeOp->Get('date')); // Retrieve author login