From 2937d1e59c9cafbf82da5b9205f696eac78e67a8 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Thu, 18 Apr 2024 08:50:55 +0200
Subject: [PATCH] Bug 36634: Replace cud-show with show in
 tools/automatic_item_modification_by_age.pl

It's never used in the template anyway but for consistency it would be better to use "show" (it's not CUD)

No change expected.
---
 tools/automatic_item_modification_by_age.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/automatic_item_modification_by_age.pl b/tools/automatic_item_modification_by_age.pl
index 59c37712b26..9015e051e91 100755
--- a/tools/automatic_item_modification_by_age.pl
+++ b/tools/automatic_item_modification_by_age.pl
@@ -56,7 +56,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
     }
 );
 
-my $op = $cgi->param('op') // 'cud-show';
+my $op = $cgi->param('op') // 'show';
 
 my $syspref_name = q|automatic_item_modification_by_age_configuration|;
 if ( $op eq 'cud-update' ) {
@@ -96,7 +96,7 @@ if ( $op eq 'cud-update' ) {
     my $syspref_content = to_json( \@rules );
     C4::Context->set_preference($syspref_name, $syspref_content);
 
-    $op = 'cud-show';
+    $op = 'show';
 }
 
 my @messages;
-- 
2.34.1