From d8e0930549e3578155acd7db533f0a42d605190a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 2 May 2019 20:49:45 -0400 Subject: [PATCH] Revert "Bug 22478: (QA follow-up) Handle category in opac-shelves like a boolean" This reverts commit 375dd35d5354d46c4c16f534494b123ce370c3f4. https://bugs.koha-community.org/show_bug.cgi?id=22836 Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens (cherry picked from commit 7bed2a3fe61ff605b636e292e73b96947de23b29) Signed-off-by: Martin Renvoize --- opac/opac-shelves.pl | 1 - virtualshelves/shelves.pl | 1 - 2 files changed, 2 deletions(-) diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl index d8a90a3d43..8da67e905f 100755 --- a/opac/opac-shelves.pl +++ b/opac/opac-shelves.pl @@ -60,7 +60,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user({ my $op = $query->param('op') || 'list'; my $referer = $query->param('referer') || $op; my $category = $query->param('category') || 1; -$category = 2 if $category ne "1"; my ( $shelf, $shelfnumber, @messages ); if ( $op eq 'add_form' ) { diff --git a/virtualshelves/shelves.pl b/virtualshelves/shelves.pl index ea84249c86..bd1c0d4654 100755 --- a/virtualshelves/shelves.pl +++ b/virtualshelves/shelves.pl @@ -50,7 +50,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( my $op = $query->param('op') || 'list'; my $referer = $query->param('referer') || $op; my $category = $query->param('category') || 1; -$category = 2 if $category ne "1"; my ( $shelf, $shelfnumber, @messages ); if ( $op eq 'add_form' ) { -- 2.39.5