From 3c9d916641196a9a892d6be24d885ee8539be7bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Sat, 22 Oct 2016 12:41:21 +0200 Subject: [PATCH] Bug 17292 Follow-up, fix typos MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - wrong assignation - reference to 'serials' table rather than 'serial' Signed-off-by: Frédéric Demians Signed-off-by: Kyle M Hall --- installer/data/mysql/updatedatabase.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 9b77f8d1e9..b53f6f616b 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -11475,13 +11475,12 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { my $sth2 = $dbh->prepare("SELECT * FROM subscription_numberpatterns WHERE id = ?"); - my $sth3 = $dbh->prepare("UPDATE serials SET serialseq_x = ?, serialseq_y = ?, serialseq_z = ? WHERE serialid = ?"); + my $sth3 = $dbh->prepare("UPDATE serial SET serialseq_x = ?, serialseq_y = ?, serialseq_z = ? WHERE serialid = ?"); foreach my $subscription ( $sth->fetchrow_hashref() ) { next if !defined($subscription); - my $number_pattern = $subscription->numberpattern(); $sth2->execute( $subscription->{numberpattern} ); - $number_pattern = $sth2->fetchrow_hashref(); + my $number_pattern = $sth2->fetchrow_hashref(); my $numbering_method = $number_pattern->{numberingmethod}; # Get all the data between the enumeration values, we need -- 2.39.5