From 3223766f90312687d83e3bdff6db923abcebb13a Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 3 Apr 2025 16:34:35 +0200 Subject: [PATCH] Bug 35267: (follow-up) Remove 'apply to all' from format With the introduction of more granular global preferences for notice CSS we no longer need the somewhat confusing per notice but apply to all format checkbox. As suggested by Lucas, this patch removes that option. This is safe to remove at this stage as the feature in question isn't really working given the second bug implimenting most of the functionality to expose it is still in the queue. Sponsored-by: Open Fifth --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt | 5 ----- tools/letter.pl | 7 ------- 2 files changed, 12 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt index f41dad127ed..6b999d945a4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -889,11 +889,6 @@ -
  • - - - Existing format settings will be overwritten. -
  • diff --git a/tools/letter.pl b/tools/letter.pl index 0d409850b96..081063e6785 100755 --- a/tools/letter.pl +++ b/tools/letter.pl @@ -328,13 +328,6 @@ sub add_validate { for my $mtt (@mtt) { my $lang = shift @lang; my $style = $input->param("style_$lang"); - my $format_all = $input->param("format_all_$lang"); - if ($format_all) { - my @letters = Koha::Notice::Templates->search( { lang => $lang } )->as_list; - foreach my $letter (@letters) { - $letter->set( { style => $style } )->store; - } - } my $is_html = $input->param("is_html_$mtt\_$lang"); my $title = shift @title; my $content = shift @content; -- 2.49.0