Lines 3101-3107
sub AnonymiseIssueHistory {
Link Here
|
3101 |
} |
3101 |
} |
3102 |
|
3102 |
|
3103 |
if ( C4::Context->preference('StoreLastBorrower') ) { |
3103 |
if ( C4::Context->preference('StoreLastBorrower') ) { |
3104 |
$query .= " AND issue_id IN ( SELECT issue_id FROM old_issues GROUP BY itemnumber ORDER BY issue_id DESC ) "; |
3104 |
# Do not delete the newest old_issue for any itemnumber |
|
|
3105 |
$query .= " AND issue_id NOT IN ( SELECT issue_id FROM ( SELECT * FROM old_issues ORDER BY issue_id DESC ) AS oi GROUP BY itemnumber ) "; |
3105 |
} |
3106 |
} |
3106 |
|
3107 |
|
3107 |
my $sth = $dbh->prepare($query); |
3108 |
my $sth = $dbh->prepare($query); |
3108 |
- |
|
|