Bug 41815 - addorderiso fills a budget silently
Summary: addorderiso fills a budget silently
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-11 10:27 UTC by Baptiste Wojtkowski (bwoj)
Modified: 2026-02-11 10:28 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Baptiste Wojtkowski (bwoj) 2026-02-11 10:27:42 UTC
In Bug 41070, I fixed an issue in the js form of acquisitions. The bug allows to submit an invalid form.

However in ./acqui/addorderiso2709.pl, there is a default behaviour that looks absurd to me, Koha should internal server error here, shouldn't it ?

> 179     if ( scalar @$budgets == 0 ) {
> 180         die "No budgets defined, can't continue";
> 181     }
> 182     my $budget_id = @$budgets[0]->{'budget_id'};
> 183