|
Lines 208-213
sub anonymise_issue_history {
Link Here
|
| 208 |
return $nb_rows; |
208 |
return $nb_rows; |
| 209 |
} |
209 |
} |
| 210 |
|
210 |
|
|
|
211 |
=head3 search |
| 212 |
|
| 213 |
Koha::Patrons->search(); |
| 214 |
|
| 215 |
Ensure patron searches do not return internal system users |
| 216 |
|
| 217 |
=cut |
| 218 |
|
| 219 |
sub search { |
| 220 |
my ( $self, $params, $attr ) = @_; |
| 221 |
return $self->SUPER::search( { borrowernumber => { '>' => 0 } } ) |
| 222 |
->SUPER::search( $params, $attr ); |
| 223 |
} |
| 224 |
|
| 211 |
=head3 delete |
225 |
=head3 delete |
| 212 |
|
226 |
|
| 213 |
Koha::Patrons->search({ some filters here })->delete({ move => 1 }); |
227 |
Koha::Patrons->search({ some filters here })->delete({ move => 1 }); |
| 214 |
- |
|
|