From: dbs Date: Fri, 17 Dec 2010 15:17:43 +0000 (+0000) Subject: Do an equality test, instead of assigning a value X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=593b8c8c5aa23fff8a4c88278e0f4848ad30bd63;p=evergreen%2Fmasslnc.git 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 --- diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm index 3173a34482..bf542402dc 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);