Bug 22489: Update onboarding tool for bug 18925
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 12 Mar 2019 17:29:38 +0000 (17:29 +0000)
committerroot <root@f1ebe1bec408>
Fri, 15 Mar 2019 11:33:09 +0000 (11:33 +0000)
commit3c4232e746cef574de9d1a346be7704dc3cd2e33
treeb30dc73a91eff002791556492044f514a5862213
parent585273b6147d0cda646296a5121e7a3af021473c
Bug 22489: Update onboarding tool for bug 18925

When going through the onboarding process, the tool fails on submit of step 5,
due to changes made in the database structure and rule definitions by bug
18925.

This patch fixes this, adding code that creates a circulation rule where an
issuing rule is also created in onboarding.pl. It removes maxissueqty from
being sent with params to make an issuing rule, and adds it instead to the
params to make a circulation rule, to reflect the changes that have been made
in the database.

Test plan:
1) Drop and recreate your database
2) Reload the staff client and follow the installer and onboarding
process
3) Confirm that the process finishes without errors

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Liz Rea <wizzyrea@gmail.com>

Bug 22489: (follow-up) Correctly set success messages

The original patch was duplicating the success message upon successful
circ rule insertion. This corrects that.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Liz Rea <wizzyrea@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Patches squashed for readability

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
installer/onboarding.pl