circulation.pl contains some obsolete code for counting the number of each item type checked out to the patron. This was a feature in 2.x (or dev_week?) which was never ported to 3.0.
Created attachment 2521 [details] [review] Proposed fix The removed section of code contained a "my $dbh = C4::Context->dbh" which is required for the query of BOR_NOTES. That line has been moved accordingly.
Patch pushed, please test and close
This bug is mentioned in: Fix for Bug 5137, Remove obsolete code counting issues by item type in circ http://lists.koha-community.org/pipermail/koha-patches/2010-October/012756.html
This bug has a patch presently committed to HEAD and 3.2.x. Please take the appropriate action to update the status of this bug. Remember, bugs which have been resolved should be tested and marked closed, preferably by the original reporter.
A fix for this bug has been committed to the current development HEAD as well as released in 3.2.1.