Bug 12059: Prefer to list fields in the query

To avoir further issue, it's better to explicitely list the fields we
want to retrieve.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
This commit is contained in:
Jonathan Druart 2014-12-04 16:05:34 +01:00 committed by Mason James
parent f9c17a4ef6
commit f23b44887d
1 changed files with 5 additions and 1 deletions

View File

@ -2734,7 +2734,11 @@ sub GetInvoiceDetails {
my $invoice = $sth->fetchrow_hashref;
$query = q{
SELECT aqorders.*, biblio.*, biblioitems.*, aqbasket.basketname
SELECT aqorders.*, biblio.*,
biblio.copyrightdate,
biblioitems.publishercode,
biblioitems.publicationyear,
aqbasket.basketname
FROM aqorders
LEFT JOIN aqbasket ON aqorders.basketno = aqbasket.basketno
LEFT JOIN biblio ON aqorders.biblionumber = biblio.biblionumber