Bug 22065 - Can't receive isses when there is no serial with status 1 (expected)
Summary: Can't receive isses when there is no serial with status 1 (expected)
Status: CLOSED WONTFIX
Alias: None
Product: Koha
Classification: Unclassified
Component: Serials (show other bugs)
Version: 17.11
Hardware: All All
: P5 - low minor
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-03 15:46 UTC by Katrin Fischer
Modified: 2020-01-06 20:15 UTC (History)
1 user (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.