Removed a buggy conditional if that resulted in an incorrect item status
authorDavid Birmingham <dbirmingham@ptfs.com>
Fri, 5 Jun 2009 20:40:55 +0000 (16:40 -0400)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Mon, 8 Jun 2009 07:23:44 +0000 (09:23 +0200)
Previous conditional check with if ($restype) is not needed because a true
result for one item will result in subsqeuent items defaulting to this true
value.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/Items.pm

index f47f9c8..595812c 100644 (file)
@@ -1267,9 +1267,10 @@ sub GetItemsInfo {
                if ( $datedue eq '' ) {
             my ( $restype, $reserves ) =
               C4::Reserves::CheckReserves( $data->{'itemnumber'} );
-            if ($restype) {
-                $count_reserves = $restype;
-            }
+# Previous conditional check with if ($restype) is not needed because a true
+# result for one item will result in subsequent items defaulting to this true
+# value.
+            $count_reserves = $restype;
         }
         $isth->finish;
         $ssth->finish;