[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:09:12 CEST 2022


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

--- Comment #11 from Chris Nighswonger <cnighswonger at foundations.edu> ---
(In reply to Chris Nighswonger from comment #9)
> (In reply to Lucas Gass from comment #8)
> 
> > 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
> 
> See the comment here:
> 
> https://github.com/Koha-Community/Koha/blob/master/C4/Creators/Batch.pm#L156
> 
> What is being passed in as the batch id?

The URL to create the PDF should similar to this:

https://jl-staff.campus.foundations.edu/cgi-bin/koha/labels/label-create-pdf.pl?batch_id=858&template_id=1&layout_id=5&start_label=1&label_id=25498

If batch_id is non-existent or an invalid value, C4::Creators::Batch->retrieve
will return -2.

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


More information about the Koha-bugs mailing list