GetAnalyticsCount needs some C4::Search subs but there is no 'use C4::Search' in C4::Items. This can cause GetAnalyticsCount to fail if called in a context where C4::Search is not loaded. This blocks bug 7162
Created attachment 8340 [details] [review] use C4::Search in C4::Items GetAnalyticsCount needs subs from C4::Search
How can this be tested? Do you have one or more examples of where GetAnalyticsCount fails, because C4::Search is not loaded?
Problem was discovered testing the patch for bug 7162 which use C4::Items::DelItemCheck (which use GetAnalyticsCount). I don't know where DelItemCheck is used, but you can apply this patch and patch for bug 7162, and try to cancel an order line (in basket.pl or parcel.pl)
C4::Search is already used in C4/Items.pm use C4::Search qw/SimpleSearch/;
ok so this patch is not useful anymore. marking as resolved.