In acquisitions when I try to 'Delete order and catalog record' I get the following: Software error: Can't call method "as_usmarc" on an undefined value at /home/nengard/kohaclone/C4/Items.pm line 621. For help, please send mail to the webmaster (webmaster@debian), giving this error message and the time and date of the error. The same thing happens if I just click 'Delete order'
Trying to reproduce the problem, I don't have it, it work for me. looking at line 621, it contains: $copy2deleted->execute( $record->as_usmarc(), $itemnumber ); $record is retrieved a few lines before: my $record = GetMarcBiblio($biblionumber); was your record here when you clicked on "Delete order and catalog record" ? If it wasn't, I think that's the explanation for the bug. (and the fix should be easy)
I'm not sure where 'here' is. You asked 'was your record here when...'
(In reply to comment #2) > I'm not sure where 'here' is. You asked 'was your record here when...' do you imply my english is poor ? ;-) my question was: are you sure the bibliographic record attached to your order was still existing ? because ->as_usmarc is failing when $record is not a MARC::Record And it's not a MARC::Record if GetMarcBiblio could not find it HTH
(In reply to comment #3) > (In reply to comment #2) > > I'm not sure where 'here' is. You asked 'was your record here when...' > do you imply my english is poor ? ;-) I imply no such thing! :) Just that you needed to be more thorough :) > > my question was: are you sure the bibliographic record attached to your > order was still existing ? because ->as_usmarc is failing when $record is > not a MARC::Record > And it's not a MARC::Record if GetMarcBiblio could not find it Let me try it again and get back to you. Nicole
Okay, I tested and was able to delete - so I have no idea what version I was in when this happened - but let's say it's invalid. Nicole