From 5d0dc4d8ce46353051c27603d39eac3d92fd780a Mon Sep 17 00:00:00 2001 From: remi Date: Thu, 30 Jul 2015 10:53:14 -0400 Subject: [PATCH] Bug13572 - Changed "borrowers-force-messaging-defaults" --help parameter's result to better explain the new functionality MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New test plan (well, a clearer version): 1) Apply both patches 2) Create a new patron with random values, except for it expiration date, make it expired (Patrons > New Patron > Student) 3) Enable the system preference called “EnhancedMessagingPreferences” 4) In “Administration" > "Patron categories" > Student, modify the "days in advance", then click "Save" 5) run the script "./misc/maintenance/borrowers-force-messaging-defaults --doit --onlyactives" 6) Validate that the student created in step 2 hasn't changed (Patrons > search) 7) Validate that any other student that isn't expired has changed. --- .../maintenance/borrowers-force-messaging-defaults | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/misc/maintenance/borrowers-force-messaging-defaults b/misc/maintenance/borrowers-force-messaging-defaults index c41129a..db54401 100755 --- a/misc/maintenance/borrowers-force-messaging-defaults +++ b/misc/maintenance/borrowers-force-messaging-defaults @@ -93,6 +93,7 @@ force-borrower-messaging-defaults force-borrower-messaging-defaults --help force-borrower-messaging-defaults --doit force-borrower-messaging-defaults --doit --truncate + force-borrower-messaging-defaults --doit --onlyactives =head1 DESCRIPTION @@ -113,13 +114,17 @@ Prints this help =item B<--doit> -Process actually the borrowers. +Actually update the borrowers. =item B<--truncate> Truncate all borrowers transport preferences before (re-)creating them. It affects borrower_message_preferences table. +=item B<--onlyactives> + +Will only update active borrowers (borrowers who didn't pass their expiration date). + =back =cut -- 1.7.9.5