From 7cbaacf4c06fcf978e1850e67c48389c28c9f244 Mon Sep 17 00:00:00 2001
From: Lucas Gass <lucas@bywatersolutions.com>
Date: Tue, 30 Jan 2024 20:38:15 +0000
Subject: [PATCH] Bug 35952: Remove unnecessary line for OpacSuppressionMessage

To test:
1. Apply patch and restart all
2. Add an additional contetn entry for `OpacSuppressionMessage`, make
   sure it has a publication date in the past.
3. Make sure  OpacSuppression is set to 'hide'.
4. Suppress a record in the OPAC, ( 942$n )
5. Visit the detail page for that record and make sure you
   OpacSuppressionMessage customization displays.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
---
 opac/opac-blocked.pl | 2 --
 1 file changed, 2 deletions(-)

diff --git a/opac/opac-blocked.pl b/opac/opac-blocked.pl
index 6fc1a04aa1..a604fefdbd 100755
--- a/opac/opac-blocked.pl
+++ b/opac/opac-blocked.pl
@@ -33,6 +33,4 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
     }
 );
 
-$template->param ( OpacSuppressionMessage => C4::Context->preference('OpacSuppressionMessage'));
-
 output_with_http_headers $query, $cookie, $template->output, 'html';
-- 
2.30.2