From 92e5bbe6f215ceb956e73d498ebe1502f593b51a Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Mon, 7 Nov 2016 16:07:01 +0100 Subject: [PATCH] Bug 17420 - record export fails when itemtype on biblio - followup Same as previous patch for misc/export_records.pl. Test plan : - Use syspref item-level_itypes = biblio record - Run misc/export_records.pl => Without patch you get an error : DBD::mysql::st execute failed: Unknown column 'biblioitems.itemtype' in 'where clause' ... => With patch you get a correct export file Signed-off-by: Bernardo Gonzalez Kriegel Export Ok, no errors. Signed-off-by: Marcel de Rooy Signed-off-by: Mason James --- misc/export_records.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/export_records.pl b/misc/export_records.pl index ccbade235a..a873f020d6 100755 --- a/misc/export_records.pl +++ b/misc/export_records.pl @@ -144,7 +144,7 @@ if ( $record_type eq 'bibs' ) { ? C4::Context->preference('item-level_itypes') ? ( 'items.itype' => $itemtype ) - : ( 'biblioitems.itemtype' => $itemtype ) + : ( 'me.itemtype' => $itemtype ) : () ), -- 2.39.5