Fridolin Somers
37256b4d2d
In Tools, Export data, you can export with a filter on item type. When item type is on biblio record, you get the error : export.pl: DBIx::Class::ResultSet::next(): Unknown column 'biblioitems.itemtype' in 'where clause' at /home/koha/src/Koha/Objects.pm line 150 Looks like its because this code use to be a SQL Select and is now a DBIx call : C4::Context->preference('item-level_itypes') ? ( 'items.itype' => $itemtype ) : ( 'me.itemtype' => $itemtype ) This patch corrects by using "me.itemtype" Test plan : - Use syspref item-level_itypes = biblio record - Go to Tools > Export data : /cgi-bin/koha/tools/export.pl - Select an item type - Click on "Export biblio records" => Without patch you get an error 500 => With patch you get a correct export file Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Fix the issue, no errors. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> |
||
---|---|---|
.. | ||
csv-profiles | ||
quotes | ||
ajax-inventory.pl | ||
automatic_item_modification_by_age.pl | ||
background-job-progress.pl | ||
batch_delete_records.pl | ||
batch_record_modification.pl | ||
batch_records_ajax.pl | ||
batchMod.pl | ||
cleanborrowers.pl | ||
copy-holidays.pl | ||
csv-profiles.pl | ||
exceptionHolidays.pl | ||
export.pl | ||
holidays.pl | ||
import_borrowers.pl | ||
inventory.pl | ||
koha-news.pl | ||
letter.pl | ||
manage-marc-import.pl | ||
marc_modification_templates.pl | ||
modborrowers.pl | ||
newHolidays.pl | ||
overduerules.pl | ||
picture-upload.pl | ||
quotes-upload.pl | ||
quotes.pl | ||
scheduler.pl | ||
showdiffmarc.pl | ||
stage-marc-import.pl | ||
tools-home.pl | ||
upload-cover-image.pl | ||
upload-file.pl | ||
upload.pl | ||
viewlog.pl |