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)
committerGalen Charlton <galen.charlton@liblime.com>
Sun, 7 Jun 2009 19:22:21 +0000 (14:22 -0500)
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;