Bug 9455: Remove unnecessary quoting from sql
Wa've removed the mysql specific back quotes from sql files But this case remained of them embedded in an sql string Also removed the unnecessary call to finish and temporary variable in the subroutine return Testing: Functionality should remain unchanged. Retrieval of basketgroups in acquisitions should not be affected Signed-off-by: Owen Leonard <oleonard@myacpl.org> Works according to test instructions: Basketgroups functionality appears to work normally. Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Checked SQL produces the same results as before and did some tests on the basket group functionality. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
e0df9b5e59
commit
1dabb45a50
|
|
@ -801,14 +801,12 @@ Returns a reference to the array of all the basketgroups of bookseller $booksell
|
|||
|
||||
sub GetBasketgroups {
|
||||
my $booksellerid = shift;
|
||||
die "bookseller id is required to edit a basketgroup" unless $booksellerid;
|
||||
my $query = "SELECT * FROM aqbasketgroups WHERE booksellerid=? ORDER BY `id` DESC";
|
||||
die 'bookseller id is required to edit a basketgroup' unless $booksellerid;
|
||||
my $query = 'SELECT * FROM aqbasketgroups WHERE booksellerid=? ORDER BY id DESC';
|
||||
my $dbh = C4::Context->dbh;
|
||||
my $sth = $dbh->prepare($query);
|
||||
$sth->execute($booksellerid);
|
||||
my $results = $sth->fetchall_arrayref({});
|
||||
$sth->finish;
|
||||
return $results
|
||||
return $sth->fetchall_arrayref({});
|
||||
}
|
||||
|
||||
#------------------------------------------------------------#
|
||||
|
|
|
|||
Loading…
Reference in New Issue