Browse Source

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: Tomas Cohen Arazi <tomascohen@gmail.com>
3.20.x
Jonathan Druart 7 years ago
committed by Tomas Cohen Arazi
parent
commit
bf681e28ba
  1. 6
      C4/Acquisition.pm

6
C4/Acquisition.pm

@ -2644,7 +2644,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

Loading…
Cancel
Save