Merge branch 'bug_9455' into 3.12-master
This commit is contained in:
commit
45a7d554ea
1 changed files with 3 additions and 5 deletions
|
@ -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 a new issue