Bugzilla – Attachment 32274 Details for
Bug 11945
Cronjob delete_expired_opac_registrations.pl fails with error in SQL syntax
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11945: The script should die if the pref are not filled
Bug-11945-The-script-should-die-if-the-pref-are-no.patch (text/plain), 1.09 KB, created by
Jonathan Druart
on 2014-10-11 20:45:08 UTC
(
hide
)
Description:
Bug 11945: The script should die if the pref are not filled
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-10-11 20:45:08 UTC
Size:
1.09 KB
patch
obsolete
>From 25551ea66a357ca35f95152ee7c0e4988cc94efd Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Sat, 11 Oct 2014 22:43:52 +0200 >Subject: [PATCH] Bug 11945: The script should die if the pref are not filled > >If the 2 prefs are not defined, the script should die. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > misc/cronjobs/delete_expired_opac_registrations.pl | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/misc/cronjobs/delete_expired_opac_registrations.pl b/misc/cronjobs/delete_expired_opac_registrations.pl >index 7a24d47..b88b9b6 100755 >--- a/misc/cronjobs/delete_expired_opac_registrations.pl >+++ b/misc/cronjobs/delete_expired_opac_registrations.pl >@@ -69,6 +69,9 @@ my $delay = > my $category_code = > C4::Context->preference('PatronSelfRegistrationDefaultCategory'); > >+die "PatronSelfRegistrationExpireTemporaryAccountsDelay and PatronSelfRegistrationDefaultCategory should be filled to use this script!" >+ if not $category_code or not defined $delay or $delay eq q||; >+ > my $query = " > SELECT borrowernumber > FROM borrowers >-- >2.1.0
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 11945
:
32078
|
32091
|
32273
| 32274