From f9064084f9ac513edbda244e6751efc3ceb939e2 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Wed, 7 Jul 2021 14:11:03 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B04130=20-=20Activity=20panel:=20Remove=20?= =?UTF-8?q?edits=20and=20transitions=20from=20default=20filters=20on=20log?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/config.class.inc.php | 16 ++++++++++++++++ .../base/layouts/activity-panel/layout.html.twig | 2 +- .../activity-panel/tab-toolbar/layout.html.twig | 4 ++-- 3 files changed, 19 insertions(+), 3 deletions(-) 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}) }}
{{ 'UI:Layout:ActivityPanel:MultipleEntriesSaveConfirmation:Explanation'|dict_s }}