mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
- Get rid of the class UserContext, since now everything is implemented directly in MetaModel
- Make the Accordion menu collapsible SVN:trunk[683]
This commit is contained in:
@@ -743,10 +743,9 @@ class HistoryBlock extends DisplayBlock
|
||||
|
||||
if (is_object($oLatestChangeOp))
|
||||
{
|
||||
$oContext = new UserContext();
|
||||
// There is one change in the list... only when the object has been created !
|
||||
$sDate = $oLatestChangeOp->GetAsHTML('date');
|
||||
$oChange = $oContext->GetObject('CMDBChange', $oLatestChangeOp->Get('change'));
|
||||
$oChange = MetaModel::GetObject('CMDBChange', $oLatestChangeOp->Get('change'));
|
||||
$sUserInfo = $oChange->GetAsHTML('userinfo');
|
||||
$sHtml .= $oPage->GetStartCollapsibleSection(Dict::Format('UI:History:LastModified_On_By', $sDate, $sUserInfo));
|
||||
$sHtml .= $this->GetHistoryTable($oPage, $oSet);
|
||||
|
||||
Reference in New Issue
Block a user