Bug 7977: Fixing a bug which results in quote fields being incorrectly offset when...
authorChris Nighswonger <cnighswonger@foundations.edu>
Fri, 11 May 2012 14:35:25 +0000 (10:35 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 24 May 2012 12:15:05 +0000 (14:15 +0200)
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
tools/quotes/quotes-upload_ajax.pl

index f1c3746..d2817d3 100755 (executable)
@@ -53,7 +53,7 @@ my $sth = $dbh->prepare('INSERT INTO quotes (source, text) VALUES (?, ?);');
 my $insert_count = 0;
 
 foreach my $quote (@$quotes) {
-    $insert_count++ if $sth->execute($quote->[0], $quote->[1]);
+    $insert_count++ if $sth->execute($quote->[1], $quote->[2]);
     if ($sth->err) {
         warn sprintf('Database returned the following error: %s', $sth->errstr);
         $success = 'false';