https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40744

Ayoub Glizi-Vicioso <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #191874|0                           |1
        is obsolete|                            |

--- Comment #14 from Ayoub Glizi-Vicioso <[email protected]> ---
Created attachment 191888
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191888&action=edit
Bug 40744: Ignore --del-exp-selfreg if pref is not set

Handle error messages from the cleanup_database.pl script, depending on the
preference settings.

to test

BEFORE APPLYING PATCH:

1- From the main page on the staff interface, go to Administration.
2- On the system preferences search bar, enter 'PatronSelfRegistration'.
3- Set 'PatronSelfRegistration' value to "Don't allow".
4- On the system preferences search bar, enter
'PatronSelfRegistrationExpireTemporaryAccountsDelay'.
5- Set 'PatronSelfRegistrationExpireTemporaryAccountsDelay' value to '0'.
6- On command line, run cleanup_database.pl.
Note: the following message will show up: 
'Self-registrations cannot be removed, system preference
PatronSelfRegistrationDefaultCategory is not set'

7- Apply patch.

AFTER APPLYING PATCH:

8- Set 'PatronSelfRegistration' value to "Don't allow" and set
'PatronSelfRegistrationExpireTemporaryAccountsDelay' value to '0'.
9- Save and run cleanup_database.pl : No message should show up. 

10- Set 'PatronSelfRegistration' value to "Allow" and set
'PatronSelfRegistrationExpireTemporaryAccountsDelay' value to '0'.
11- Save and run cleanup_database.pl : No message should show up. 

12- Set 'PatronSelfRegistration' value to "Don't allow". and set
'PatronSelfRegistrationExpireTemporaryAccountsDelay' value to '1'.
13- Save and run cleanup_database.pl : No message should show up. 

14- Set 'PatronSelfRegistration' value to "Allow". and set
'PatronSelfRegistrationExpireTemporaryAccountsDelay' value to '1'.
15- Save and run cleanup_database.pl 
Note: this message should show up: 
'Self-registrations cannot be removed, system preference
PatronSelfRegistrationDefaultCategory is not set' 

16- Set 'PatronSelfRegistration' value to "Don't allow". and set
'PatronSelfRegistrationExpireTemporaryAccountsDelay' value to ''(leave empty).
17- Save and run cleanup_database.pl : No message should show up. 

18- Set 'PatronSelfRegistration' value to "Allow". and set
'PatronSelfRegistrationExpireTemporaryAccountsDelay' value to ''(leave empty).
19- Save and run cleanup_database.pl : No message should show up. 


** EXEMPLE OF THE COMMAND TO EXECUTE: make sure to enter the RIGHT PATH to the
script file.

perl /path/to/cleanup_database.pl --sessions --sessdays 1 --zebraqueue 1 --mail
365 --merged --import 90 --z3950 --logs 180 --searchhistory 30 --list-invites 7
--all-restrictions --del-exp-selfreg --del-unv-selfreg 30 --temp-uploads
--temp-uploads-days 14 --oauth-tokens --transfers 30  --jobs-days 1 --jobs-type
all --confirm

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to