mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°3545 - Activity panel: Change caselogs order so it's defined by the details zlist
This commit is contained in:
@@ -122,9 +122,13 @@ class ActivityPanel extends UIBlock
|
||||
$this->InitializeCaseLogTabs();
|
||||
$this->InitializeCaseLogTabsEntryForms();
|
||||
|
||||
$aCaseLogAttCodes = MetaModel::GetCaseLogs($sObjectClass);
|
||||
foreach($aCaseLogAttCodes as $sCaseLogAttCode)
|
||||
{
|
||||
// Get only case logs from the "details" zlist, but if none (2.7 and older) show them all
|
||||
$aCaseLogAttCodes = MetaModel::GetCaseLogs($sObjectClass, 'details');
|
||||
if (empty($aCaseLogAttCodes)) {
|
||||
$aCaseLogAttCodes = MetaModel::GetCaseLogs($sObjectClass);
|
||||
}
|
||||
|
||||
foreach ($aCaseLogAttCodes as $sCaseLogAttCode) {
|
||||
$this->AddCaseLogTab($sCaseLogAttCode);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user