]> git.koha-community.org Git - koha.git/commit
Bug 35685: Fix after creation actions
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Wed, 3 Jan 2024 12:01:36 +0000 (12:01 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 23 May 2024 09:37:58 +0000 (11:37 +0200)
commitedbb8896f067e1e2f7453b1f29bc129110237e99
tree26911a525ee367dd6786e55260380a030c855ca6
parent8607c04099b2296046236de15a246d7999157f1b
Bug 35685: Fix after creation actions

Test plan:

1) Install FreeForm and enable ILLModule, run:
  bash <(curl -s https://raw.githubusercontent.com/ammopt/koha-ill-dev/master/start-ill-dev.sh)
2) Configure ILLModuleDisclaimerByType, visit:
  /cgi-bin/koha/admin/preferences.pl?tab=&op=search&searchfield=ILLModuleDisclaimerByType
  Click "edit" and paste the example code into the sys pref value
3) Create a new OPAC ILL request, visit:
  /cgi-bin/koha/opac-illrequests.pl?method=create&backend=FreeForm
4) Dont put a type or branch, click 'Create', on the next screen click 'Submit'
5) Notice it explodes
6) Apply patch and repeat. It no longer explodes and now shows an error message.

7) (After FQA): Create a normal request, input type and library, submit the type disclaimer
8) Run:
echo "select * from illrequestattributes;" | koha-mysql kohadev
9) Notice type_disclaimer_date and type_disclaimer_value are correctly saved

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 34aa31b22d8262c108988071949c5bd4dfc78a88)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
opac/opac-illrequests.pl