From f328a3240261cd7120fc82a7facc05470ea0ee50 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Fri, 11 May 2012 10:35:25 -0400 Subject: [PATCH] Bug 7977: Fixing a bug which results in quote fields being incorrectly offset when saving uploaded quotes Signed-off-by: Jared Camins-Esakov Signed-off-by: Mason James --- tools/quotes/quotes-upload_ajax.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/quotes/quotes-upload_ajax.pl b/tools/quotes/quotes-upload_ajax.pl index f1c3746b95..d2817d3af1 100755 --- a/tools/quotes/quotes-upload_ajax.pl +++ b/tools/quotes/quotes-upload_ajax.pl @@ -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'; -- 2.39.5