Bug 9468: followup insert ignore

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2015-04-20 11:14:59 +02:00 committed by Tomas Cohen Arazi
parent 5ab919812b
commit 01b764c436

View file

@ -11324,10 +11324,10 @@ if ( CheckVersion($DBversion) ) {
$DBversion = "3.19.00.XXX"; $DBversion = "3.19.00.XXX";
if ( CheckVersion($DBversion) ) { if ( CheckVersion($DBversion) ) {
foreach my $format (@{ GetSupportList() }) { foreach my $format (@{ GetSupportList() }) {
$dbh->do( $dbh->do(q|
q/INSERT INTO authorised_values (category, authorised_value, lib, lib_opac, imageurl) INSERT IGNORE INTO authorised_values (category, authorised_value, lib, lib_opac, imageurl)
VALUES (?, ?, ?, ?, ?)/, VALUES (?, ?, ?, ?, ?)
{}, |, {},
'SUGGEST_FORMAT', $format->{itemtype}, $format->{description}, $format->{description}, $format->{imageurl} 'SUGGEST_FORMAT', $format->{itemtype}, $format->{description}, $format->{description}, $format->{imageurl}
); );
} }