From 593b8c8c5aa23fff8a4c88278e0f4848ad30bd63 Mon Sep 17 00:00:00 2001 From: dbs Date: Fri, 17 Dec 2010 15:17:43 +0000 Subject: [PATCH] Do an equality test, instead of assigning a value Thanks to Bill Erickson for catching this; this fixes a bug where SuperCat requests would end up returning authority records instead of bibliographic records. git-svn-id: svn://svn.open-ils.org/ILS/trunk@19009 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm index 3173a3448..bf542402d 100644 --- a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm +++ b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm @@ -998,7 +998,7 @@ sub changes_feed { #} my $search = 'record'; - if ($rtype = 'authority') { + if ($rtype eq 'authority') { $search = 'authority'; } my $feed = create_record_feed( $search, $type, $list, $unapi, $org_unit->[0]->shortname, undef, $flesh_feed); -- 2.11.0