Bug 41120 - Click on New data provider breaks functionality
Summary: Click on New data provider breaks functionality
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: ERM (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: Jan Kissig
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-28 11:24 UTC by Jan Kissig
Modified: 2025-10-28 12:03 UTC (History)
5 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 41120: Fix broken Add data provider functionality (1.95 KB, patch)
2025-10-28 12:02 UTC, Jan Kissig
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kissig 2025-10-28 11:24:57 UTC
This seems to be a regression bug as in 24.11. this feature is still working.

To recreate:
- in ERM add a data provider (/cgi-bin/koha/erm/eusage/usage_data_providers)
- dummy data should be sufficient
- on the new data provider overview click Close on the bottom to return to the data providers list.
- open web development tools (F12 on Firefox)
- click New data provider and see the error on the console.

The reasons seems to be, that the add form gathers an erm_usage_data_provider_id from an older route in from.value.params.erm_usage_data_provider_id
Comment 1 Jan Kissig 2025-10-28 12:02:40 UTC
Created attachment 188506 [details] [review]
Bug 41120: Fix broken Add data provider functionality

Clicking on New data provider in the ERM eUsage section will not work, when a data provider was shown before.

Test plan:

prequisites:
- activate the ERM module system preference.
- this is for ktd

a) go to /cgi-bin/koha/erm/eusage/usage_data_providers
b) add a new data provider, dummy data is sufficient
c) submit the new provider and on the following screen click close to return to the provider list
d) click on 'Add data provider' (open web dev tools will display an error)

e) apply patch
f) run 'yarn js:build'
f) do a hard refresh in the browser
g) on provider list click your created provider
h) close it via 'close' to return to the provider list
d) click on 'Add data provider' should work now