Bug 22065

Summary: Can't receive isses when there is no serial with status 1 (expected)
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: SerialsAssignee: Bugs List <koha-bugs>
Status: CLOSED WONTFIX QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: colin.campbell
Version: 17.11   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Crowdfunding committed: 0
Crowdfunding contact: Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Katrin Fischer 2019-01-03 15:46:45 UTC
We had several libraries reporting this after the update to 17.11.11.

To test:
- Create a subscription without an issue in status "expected"
  serial.status = 1
  You will need to use SQL, as I don't know yet how this happens.
- Go to the subscription detail form
- Click the receive button

Link is: 
/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=9&serstatus=1,3

- Verify the page explodes in "internal server error"

The error translates to:

Can't call method "title" on an undefined value at /usr/share/koha/intranet/cgi-                                                                                                                   bin/serials/serials-edit.pl line 424.

Workaround: 
- Go to serial collection
- Generate next issue

Needs more testing with newer versions.
Comment 1 Katrin Fischer 2019-01-04 13:03:41 UTC
It works nicely on master:
If there is no expected issue you are forwarded to the serial collection page where you can generate the next issue or change status of one of the older issues.