View | Details | Raw Unified | Return to bug 21982
Collapse All | Expand All

(-)a/reports/issues_stats.pl (-2 / +1 lines)
Lines 506-512 sub calculate { Link Here
506
            $strcalc .= " LEFT JOIN borrower_attributes AS attribute_$_ ON (statistics.borrowernumber = attribute_$_.borrowernumber AND attribute_$_.code = '$_') ";
506
            $strcalc .= " LEFT JOIN borrower_attributes AS attribute_$_ ON (statistics.borrowernumber = attribute_$_.borrowernumber AND attribute_$_.code = '$_') ";
507
        }
507
        }
508
    }
508
    }
509
    $strcalc .= "LEFT JOIN items ON statistics.itemnumber=items.itemnumber "
509
    $strcalc .= "LEFT JOIN (SELECT * FROM items UNION SELECT * FROM deleteditems) items ON statistics.itemnumber=items.itemnumber "
510
      if ( $linefield =~ /^items\./
510
      if ( $linefield =~ /^items\./
511
        or $colfield =~ /^items\./
511
        or $colfield =~ /^items\./
512
        or $process == 5
512
        or $process == 5
513
- 

Return to bug 21982