Bug 6266

Summary: Ordering from staged file gives perl error when no budget defined
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: AcquisitionsAssignee: Bugs List <koha-bugs>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: normal    
Priority: P5 - low CC: jonathan.druart
Version: Main   
Hardware: All   
OS: All   
URL: /cgi-bin/koha/acqui/addorderiso2709.pl?booksellerid=1&basketno=1
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Katrin Fischer 2011-04-25 20:44:58 UTC
When you try to order from a staged marc file and no budgets and funds are definded you get an ugly perl error: 

Software error:

Can't use an undefined value as a HASH reference at /home/katrin/kohaclone/acqui/addorderiso2709.pl line 260.

For help, please send mail to the webmaster (webmaster@wombat), giving this error message and the time and date of the error.
Comment 1 Jonathan Druart 2015-03-25 12:56:06 UTC
This is fixed, you get 
"You can't create any orders unless you first define a budget and a fund." when you try to add something to the basket.

Note that you still get the error if you access directly to the url.