Bug 8221 - Adding item to patroncard Batch causes error in Plack
Summary: Adding item to patroncard Batch causes error in Plack
Status: CLOSED WONTFIX
Alias: None
Product: Koha
Classification: Unclassified
Component: Label/patron card printing (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor (vote)
Assignee: Dobrica Pavlinusic
QA Contact:
URL:
Keywords:
Depends on: 9008
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-10 14:46 UTC by Jared Camins-Esakov
Modified: 2014-12-07 20:03 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Camins-Esakov 2012-06-10 14:46:24 UTC
Can't call method "get_attr" without a package or object reference at /home/jcamins/kohaclone/patroncards/edit-batch.pl line 126.
 at /home/jcamins/kohaclone/patroncards/edit-batch.pl line 145
Comment 1 Dobrica Pavlinusic 2012-06-14 15:49:49 UTC
I can't reproduce that error. Do you get that error in pop-up window which "Add item(s)" opens?

I'm not very good in using Koha, so I would appreciate step-by-step test scenario to reproduce it :-)

I did notice that "Remove duplicates" doesn't work for me under plack and always leave just first item in batch and it seems that Export items always exports single item, so something is fishy there.
Comment 2 Dobrica Pavlinusic 2012-06-15 18:20:12 UTC
I manage to replicate this problem, but and it happen when you are logged in with koha admin account which doesn't have library (branch) assigned.

Adding batch dies because of referential integrity error (since branch is NULL) and editing dies because there is no row created to edit.

It does work for CGI version, more research needs to be done.
Comment 3 Chris Cormack 2012-06-15 20:02:40 UTC
(In reply to comment #2)
> I manage to replicate this problem, but and it happen when you are logged in
> with koha admin account which doesn't have library (branch) assigned.
> 
Ahh yeah, we really really should stop people doing this, or at least strongly recommend they don't. Should only ever use the kohaadmin user for upgrades and setting up your first real user.


> Adding batch dies because of referential integrity error (since branch is
> NULL) and editing dies because there is no row created to edit.
> 
> It does work for CGI version, more research needs to be done.
Comment 4 Paul Poulain 2012-11-02 11:50:31 UTC
I've submitted bug 9008 as an answer to chris comment 3