Bug 29237

Summary: When deleting funds from an inactive budget, the results page returns to a different budget
Product: Koha Reporter: Valerie <valerie>
Component: AcquisitionsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Valerie 2021-10-13 21:42:18 UTC
In Administration/Budgets, I am in the "inactive budgets" tab, deleting funds under a specific budget. (In this instance, budget period #29.) When I select "delete" for the fund, it opens a new page to verify that I want to delete this budget. After it completes the deletion, it goes to a different budget, an active budget. (In this case, budget period #30). I confirmed that the fund was deleted as expected from the inactive budget, but with the page going to a different budget when complete, a user could easily delete something unintended.
Comment 1 Katrin Fischer 2022-01-09 01:01:20 UTC
Confirmed on master.

For the sample database:

1) Go to Administration > Budgets
2) Duplicate the existing budget and set it to inactive
4) Select the inactive budget and click on it, to see linked funds
5) Delete a fund
6) Verify you are now on the active budget, where the fund is still there

As Valerlie says this is quite dangerous and might easily lead people to delete the wrong funds.