Bugzilla – Attachment 21765 Details for
Bug 10419
There is no cronjob script for deleting patrons
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 10419: FIX hardcoded records and pod
SIGNED-OFF-Bug-10419-FIX-hardcoded-records-and-pod.patch (text/plain), 1.57 KB, created by
Bernardo Gonzalez Kriegel
on 2013-10-03 14:13:59 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 10419: FIX hardcoded records and pod
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2013-10-03 14:13:59 UTC
Size:
1.57 KB
patch
obsolete
>From 3dde15a00a06d4e5b95fc117fc97f73f37d39982 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Tue, 13 Aug 2013 12:47:14 +0200 >Subject: [PATCH] [SIGNED-OFF] Bug 10419: FIX hardcoded records and pod > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Missing a sign. Removes harcoded values >--- > misc/cronjobs/delete_patrons.pl | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > >diff --git a/misc/cronjobs/delete_patrons.pl b/misc/cronjobs/delete_patrons.pl >index 119ac1c..cc47b7a 100755 >--- a/misc/cronjobs/delete_patrons.pl >+++ b/misc/cronjobs/delete_patrons.pl >@@ -56,8 +56,6 @@ my $dbh = C4::Context->dbh; > $dbh->{RaiseError} = 1; > $dbh->{PrintError} = 0; > >-@$members = ( { borrowernumber => 19 } ); >- > $dbh->{AutoCommit} = 0; # use transactions to avoid partial deletes > for my $member (@$members) { > print "Trying to delete patron $member->{borrowernumber}... " >@@ -96,7 +94,7 @@ delete_patrons - This script deletes patrons > > =head1 SYNOPSIS > >-delete_patrons.pl [-h -v -c] --not_borrowed_since=2013-07-21 --expired_before=2013-07-21 --category_code=CAT --branchcode=CPL >+delete_patrons.pl [-h -v -c] --not_borrowed_since=2013-07-21 --expired_before=2013-07-21 --category_code=CAT --library=CPL > > dates can be generated with `date -d '-3 month' "+%Y-%m-%d"` > >@@ -122,7 +120,7 @@ Delete patrons with an account expired before this date. > > Delete patrons who have this category code. > >-=item B<--branchcode> >+=item B<--library> > > Delete patrons in this library. > >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10419
:
18677
|
18725
|
18743
|
18754
|
18990
|
19635
|
19651
|
20112
|
20113
|
20114
|
20115
|
20133
|
20134
|
20135
|
20136
|
20137
|
20138
|
20294
|
20295
|
20296
|
20297
|
21658
|
21765
|
21766
|
21773
|
21774
|
21780
|
21781
|
21782
|
21783
|
21784
|
21785
|
21786
|
21787