Bugzilla – Attachment 9517 Details for
Bug 7977
Add a "Quote-of-the-day" feature to the OPAC homepage
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixing a bug which results in quote fields being incorrectly offset when saving uploaded quotes
Fixing-a-bug-which-results-in-quote-fields-being-i.patch (text/plain), 1.02 KB, created by
Chris Nighswonger
on 2012-05-11 14:35:46 UTC
(
hide
)
Description:
Fixing a bug which results in quote fields being incorrectly offset when saving uploaded quotes
Filename:
MIME Type:
Creator:
Chris Nighswonger
Created:
2012-05-11 14:35:46 UTC
Size:
1.02 KB
patch
obsolete
>From 99f593c73f82a49b35bf419547a136d818f35308 Mon Sep 17 00:00:00 2001 >From: Chris Nighswonger <cnighswonger@foundations.edu> >Date: Fri, 11 May 2012 10:35:25 -0400 >Subject: [PATCH] Fixing a bug which results in quote fields being incorrectly offset when saving uploaded quotes >Content-Type: text/plain; charset="utf-8" > >--- > tools/quotes/quotes-upload_ajax.pl | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/tools/quotes/quotes-upload_ajax.pl b/tools/quotes/quotes-upload_ajax.pl >index f1c3746..d2817d3 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'; >-- >1.7.0.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7977
:
9310
|
9321
|
9323
|
9324
|
9325
|
9326
|
9327
|
9328
|
9338
|
9343
|
9373
|
9376
|
9377
|
9378
|
9392
|
9405
|
9406
|
9407
|
9408
|
9409
|
9433
|
9434
|
9435
|
9441
|
9442
|
9443
|
9447
|
9473
|
9474
|
9475
|
9476
|
9477
|
9478
|
9479
|
9480
|
9481
|
9482
|
9483
|
9484
|
9485
|
9486
|
9503
|
9504
|
9505
|
9510
|
9517
|
9521
|
9529
|
9530
|
9531
|
9682
|
9683
|
9711
|
9712
|
9713
|
9714
|
9715
|
9716
|
9717
|
9718
|
9719
|
9720
|
9721
|
9722
|
9723
|
9724
|
9725
|
9726
|
9727
|
9728
|
9729
|
9730
|
9731
|
9732