When editing some records, the editing items returns an error : "Software error: Can't call method "field" on an undefined value at /home/koha/src/cataloguing/additem.pl line 570." (MT9859)
Created attachment 11125 [details] [review] Proposed patch Small correction to test existance of $hostrecord before continuing. EasyAnalyticalRecords must be activated to be concerned by this bug.
Test plan: ---------- Activate 'EasyAnalyticalRecords' syspref. Edit a record on a framework containing visible : 773$0 for MARC21/NORMARC, 461$0 for UNIMARC. Use in this subfield a value that does not correspond to an existing biblionumber. Save the record. Go to "edit items". => Without patch : software error => With patch : no error
Created attachment 11181 [details] [review] Bug 8503: Software error in edit items with EasyAnalyticalRecords Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Solves software error when editing items for record with invalid analytic.
QA Comments: Maybe we want to add a log line if something is wrong, isn't it ?
(In reply to comment #4) > QA Comments: > > Maybe we want to add a log line if something is wrong, isn't it ? I don't think so, no. Someone may be storing other data in subfield $0.
(In reply to comment #5) > I don't think so, no. Someone may be storing other data in subfield $0. ok, so marking as Passed QA.
Pushed to 3.8.x will be in 3.8.4
*** Bug 8699 has been marked as a duplicate of this bug. ***