[Koha-bugs] [Bug 29994] Single label PDF export not working

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jul 27 03:20:58 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29994

--- Comment #12 from Chris Nighswonger <cnighswonger at foundations.edu> ---
(In reply to Lucas Gass from comment #8)
> I am able to recreate this in current master. 
> 
> 1. Make a label batch. 
> 2. Go to 'label-edit-batch.pl' and select at least one item in the table. (
> #batcht )

batch_id originates from element_id passed in to label-edit-batch.pl. ie.

https://jl-staff.campus.foundations.edu/cgi-bin/koha/labels/label-edit-batch.pl?op=edit&element_id=858

> 3. Use the 'Export' button to export at one item. 
> 4. Choose template/layout etc.

The fact that you are able to get this far would seem to indicate that a valid
batch_id is being passed in to this point.

> 5. Download as PDF
> 
> This is the error I see:
> Can't locate object method "get_attr" via package "-2" (perhaps you forgot
> to load "-2"?) at /kohadevbox/koha/labels/label-create-pdf.pl line 127

It appears that by the time you get to this point, the batch_id has become
corrupted somehow.

Please post both the label-edit-batch.pl URL and the label-create-pdf-pl URL
for your failure case.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list