diff --git a/core/config.class.inc.php b/core/config.class.inc.php index 5da4a3660..6ecb68e0f 100644 --- a/core/config.class.inc.php +++ b/core/config.class.inc.php @@ -1237,6 +1237,22 @@ class Config 'source_of_value' => '', 'show_in_conf_sample' => false, ], + 'activity_panel.prefilter_state_changes_on_logs' => [ + 'type' => 'bool', + 'description' => 'Whether the "State changes" filter should be set by default on all log tabs.', + 'default' => false, + 'value' => false, + 'source_of_value' => '', + 'show_in_conf_sample' => false, + ], + 'activity_panel.prefilter_edits_on_logs' => [ + 'type' => 'bool', + 'description' => 'Whether the "Edits" filter should be set by default on all log tabs.', + 'default' => false, + 'value' => false, + 'source_of_value' => '', + 'show_in_conf_sample' => false, + ], 'activity_panel.show_author_name_below_entries' => [ 'type' => 'bool', 'description' => 'Whether or not to show the author friendlyname next to the date on the last entry.', diff --git a/templates/base/layouts/activity-panel/layout.html.twig b/templates/base/layouts/activity-panel/layout.html.twig index e2a0b1a1b..a8caeca53 100644 --- a/templates/base/layouts/activity-panel/layout.html.twig +++ b/templates/base/layouts/activity-panel/layout.html.twig @@ -54,7 +54,7 @@ {% for sCaseLogAttCode, aCaseLogData in oUIBlock.GetCaseLogTabs() %} {{ include('base/layouts/activity-panel/tab-toolbar/caselog.html.twig', {oUIBlock: oUIBlock, iRank: loop.index, bIsActive: (loop.index == 1), aFilteredCaseLogsAttCodes: [sCaseLogAttCode]}) }} {% endfor %} - {{ include('base/layouts/activity-panel/tab-toolbar/activity.html.twig', {oUIBlock: oUIBlock, bIsActive: (oUIBlock.GetCaseLogTabs()|length == 0)}) }} + {{ include('base/layouts/activity-panel/tab-toolbar/activity.html.twig', {oUIBlock: oUIBlock, bIsActive: (oUIBlock.GetCaseLogTabs()|length == 0), bPrefilterStateChanges: true, bPrefilterEdits: true}) }}