Summary: | Crash on suggestion pages when a budget in use has been deleted | ||
---|---|---|---|
Product: | Koha | Reporter: | Adrien SAURAT <adrien.saurat> |
Component: | Acquisitions | Assignee: | Adrien SAURAT <adrien.saurat> |
Status: | CLOSED FIXED | QA Contact: | Ian Walls <koha.sekjal> |
Severity: | normal | ||
Priority: | P5 - low | CC: | chris, paul.poulain |
Version: | 3.8 | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
proposed patch #1
Bug 7871: prevents crash when suggestion linked to erased budget |
Description
Adrien SAURAT
2012-04-02 13:57:15 UTC
Created attachment 8797 [details] [review] proposed patch #1 Sent a patch preventing the undefined hash problem. But maybe we should also do that, when a budget is deleted, all linked "budgetid" in suggestions are set to NULL ? (In reply to comment #2) > But maybe we should also do that, when a budget is deleted, all linked > "budgetid" in suggestions are set to NULL ? This sounds good to me. Created attachment 9033 [details] [review] Bug 7871: prevents crash when suggestion linked to erased budget Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Breaks out a complex one-liner with lots of assumptions of existence into multiple lines with the proper conditional checks. Marking Passed QA. There have been no further reports of problems so I am marking this bug resolved. |