[Koha-bugs] [Bug 27866] Cannot create new printer profiles

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 4 11:46:40 CEST 2021


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

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|cannot create new printer   |Cannot create new printer
                   |profiles                    |profiles

--- Comment #1 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
I think the problem might occur when the printer name is left empty. The first
time it kinda uses a default value, the second time, things explode:

C4::Creators::Profile::save(): DBI Exception: DBD::mysql::st execute failed:
Duplicate entry 'DEFAULT PRINTER-0-Tray 1-Labels' for key 'printername' [for
Statement "INSERT INTO printers_profile (template_id, creep_vert, creator,
printer_name, creep_horz, units, offset_horz, paper_bin, offset_vert) VALUES
(?,?,?,?,?,?,?,?,?);" with ParamValues: 0='', 1=0, 2='Labels', 3='DEFAULT
PRINTER', 4=0, 5="POINT", 6=0, 7='Tray 1', 8=0] at
/home/vagrant/kohaclone/C4/Labels/Profile.pm line 23
 at /usr/share/perl5/DBIx/Class/Exception.pm line 77

If I enter a printer name, things save ok.

Lucas, could this be it or are you seeing another issue?

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


More information about the Koha-bugs mailing list