Bug 8503

Summary: Software error n edit items with EasyAnalyticalRecords
Product: Koha Reporter: Fridolin Somers <fridolin.somers>
Component: CatalogingAssignee: Fridolin Somers <fridolin.somers>
Status: CLOSED FIXED QA Contact: Jonathan Druart <jonathan.druart>
Severity: major    
Priority: P5 - low CC: chris, gaetan.boisson, jonathan.druart, m.de.rooy, 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
Bug 8503: Software error in edit items with EasyAnalyticalRecords

Description Fridolin Somers 2012-07-25 11:29:20 UTC
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)
Comment 1 Fridolin Somers 2012-07-25 12:17:45 UTC Comment hidden (obsolete)
Comment 2 Fridolin Somers 2012-07-25 12:27:18 UTC
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
Comment 3 Jared Camins-Esakov 2012-07-28 13:23:06 UTC
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.
Comment 4 Jonathan Druart 2012-07-30 09:02:56 UTC
QA Comments:

Maybe we want to add a log line if something is wrong, isn't it ?
Comment 5 Jared Camins-Esakov 2012-07-30 13:13:20 UTC
(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.
Comment 6 Jonathan Druart 2012-07-30 13:42:34 UTC
(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.
Comment 7 Chris Cormack 2012-08-01 23:41:33 UTC
Pushed to 3.8.x will be in 3.8.4
Comment 8 Fridolin Somers 2012-09-24 15:40:20 UTC
*** Bug 8699 has been marked as a duplicate of this bug. ***