Bug 36249 - ILL - "Request from partners" action is broken
Summary: ILL - "Request from partners" action is broken
Status: RESOLVED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: ILL (show other bugs)
Version: Main
Hardware: All All
: P5 - low critical (vote)
Assignee: Pedro Amorim
QA Contact: Martin Renvoize
URL:
Keywords: regression
Depends on: 36241 36243
Blocks: 36273 36245
  Show dependency treegraph
 
Reported: 2024-03-06 15:48 UTC by Pedro Amorim
Modified: 2024-04-17 08:47 UTC (History)
6 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
24.05.00


Attachments
Bug 36249: Fix generic_confirm op (3.52 KB, patch)
2024-03-06 16:00 UTC, Pedro Amorim
Details | Diff | Splinter Review
Bug 36249: Fix styling of 'Send email' button (1.33 KB, patch)
2024-03-06 16:15 UTC, Pedro Amorim
Details | Diff | Splinter Review
Bug 36249: Fix styling of 'Send email' button (1.35 KB, patch)
2024-03-06 16:16 UTC, Pedro Amorim
Details | Diff | Splinter Review
Bug 36249: Fix generic_confirm op (3.58 KB, patch)
2024-03-07 09:46 UTC, Martin Renvoize
Details | Diff | Splinter Review
Bug 36249: Fix styling of 'Send email' button (1.42 KB, patch)
2024-03-07 09:46 UTC, Martin Renvoize
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro Amorim 2024-03-06 15:48:22 UTC

    
Comment 1 Pedro Amorim 2024-03-06 16:00:24 UTC
Created attachment 162838 [details] [review]
Bug 36249: Fix generic_confirm op

Test plan, k-t-d:

1) Install FreeForm, enable ILL module, run:
bash <(curl -s https://raw.githubusercontent.com/ammopt/koha-ill-dev/master/start-ill-dev.sh)
2) You'll have to switch the FreeForm branch to the one compatible with this work, i.e.:
cd /kohadevbox/koha/Koha/Illbackends/FreeForm
git checkout b_36243
3) Restart plack:
koha-plack --restart kohadev
4) Start by adding an e-mail address to the patron of category "Inter-library Loan", visit:
<staff_url>/cgi-bin/koha/members/memberentry.pl?op=edit_form&destination=circ&borrowernumber=16
5) Add an e-mail address to "Primary e-mail"
6) Create a new FreeForm request, visit:
<staff_url>/cgi-bin/koha/ill/ill-requests.pl?method=create&backend=FreeForm
7) Set 'type' enter '42' in cardnumber and pick a library. Click 'Create'.
8) Click "Place request with partners"
9) Pick a partner library (will be the same patron from step 4)
10) Click "Send email". Notice the CSRF error.
11) Apply patch and restart plack
koha-plack --restart kohadev
12) Repeat 8-10. Notice error no longer shows.
13) Notice the request's status is now 'Requested from partners'
Comment 2 Pedro Amorim 2024-03-06 16:15:07 UTC Comment hidden (obsolete)
Comment 3 Pedro Amorim 2024-03-06 16:16:23 UTC
Created attachment 162841 [details] [review]
Bug 36249: Fix styling of 'Send email' button

This button was using the old 'btn-default' class instead of the new 'btn-primary' form 22.11 onwards
Comment 4 Martin Renvoize 2024-03-07 09:46:32 UTC
Created attachment 162873 [details] [review]
Bug 36249: Fix generic_confirm op

Test plan, k-t-d:

1) Install FreeForm, enable ILL module, run:
bash <(curl -s https://raw.githubusercontent.com/ammopt/koha-ill-dev/master/start-ill-dev.sh)
2) You'll have to switch the FreeForm branch to the one compatible with this work, i.e.:
cd /kohadevbox/koha/Koha/Illbackends/FreeForm
git checkout b_36243
3) Restart plack:
koha-plack --restart kohadev
4) Start by adding an e-mail address to the patron of category "Inter-library Loan", visit:
<staff_url>/cgi-bin/koha/members/memberentry.pl?op=edit_form&destination=circ&borrowernumber=16
5) Add an e-mail address to "Primary e-mail"
6) Create a new FreeForm request, visit:
<staff_url>/cgi-bin/koha/ill/ill-requests.pl?method=create&backend=FreeForm
7) Set 'type' enter '42' in cardnumber and pick a library. Click 'Create'.
8) Click "Place request with partners"
9) Pick a partner library (will be the same patron from step 4)
10) Click "Send email". Notice the CSRF error.
11) Apply patch and restart plack
koha-plack --restart kohadev
12) Repeat 8-10. Notice error no longer shows.
13) Notice the request's status is now 'Requested from partners'

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 5 Martin Renvoize 2024-03-07 09:46:34 UTC
Created attachment 162874 [details] [review]
Bug 36249: Fix styling of 'Send email' button

This button was using the old 'btn-default' class instead of the new 'btn-primary' form 22.11 onwards

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 6 Martin Renvoize 2024-03-07 09:47:03 UTC
All working as expected now, Passing QA
Comment 7 Katrin Fischer 2024-03-07 15:38:28 UTC
Pushed for 24.05!

Well done everyone, thank you!
Comment 8 Fridolin Somers 2024-04-17 08:47:11 UTC
Depends on Bug 36243 not in 23.11.x