Main Koha release repository https://koha-community.org
Find a file
Jonathan Druart dfb33b7f87
Bug 24030: Fix GetItemsForInventory under MySQL 8
t/db_dependent/Items/GetItemsForInventory.t .. 1/9 DBD::mysql::st execute failed: Expression #1 of ORDER BY clause is not in SELECT list, references column 'koha_kohadev.items.cn_sort' which is not in SELECT list; this is incompatible with DISTINCT [for Statement "
        SELECT DISTINCT(items.itemnumber), barcode, itemcallnumber, title, author, biblio.biblionumber, biblio.frameworkcode, datelastseen, homebranch, location, notforloan, damaged, itemlost, withdrawn, stocknumber

        FROM items
        LEFT JOIN biblio ON items.biblionumber = biblio.biblionumber
        LEFT JOIN biblioitems on items.biblionumber = biblioitems.biblionumber
     ORDER BY items.cn_sort, itemcallnumber, title"] at /kohadevbox/koha/C4/Items.pm line 838.

We simply follow what the error says, and add items.cn_sort to the SELECT list

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-11-13 13:25:28 +00:00
acqui Bug 11514: Untranslatable "Uncertain" text in acq 2019-11-06 16:54:42 +00:00
admin Bug 23398: Disable the XML import/export format for biblio framework 2019-11-08 12:51:16 +00:00
api/v1 Bug 23859: Make POST add the Location header on cities endpoint 2019-11-01 08:48:18 +00:00
authorities
basket
C4 Bug 24030: Fix GetItemsForInventory under MySQL 8 2019-11-13 13:25:28 +00:00
catalogue Bug 23846: Display degraded view when MARCXML is invalid (staff detail) 2019-11-13 08:04:15 +00:00
cataloguing Bug 23851: Add the homebranch prefix to the barcode when adding multiple copies of an items 2019-11-08 12:56:20 +00:00
circ Bug 20194: Display both biblioitems.itemtype and items.itype in circulation screens 2019-11-03 07:50:19 +00:00
clubs
course_reserves
debian Bug 22857: (QA follow-up) Cosmetic changes: typo, whitespace 2019-11-08 12:53:55 +00:00
docs Update docs/teams.yaml for 19.11.x development cycle 2019-10-22 15:15:33 +01:00
errors
etc Bug 22857: (QA follow-up) Cosmetic changes: typo, whitespace 2019-11-08 12:53:55 +00:00
ill
installer Bug 23932: Typo on 'aqinvoice_adjustments.encumber_open' description in Koha Schema 2019-11-13 13:10:27 +00:00
Koha Bug 23986: Pass strings to Catmandu for deletion 2019-11-11 10:31:53 +00:00
koha-tmpl Bug 23983: Remove comment 2019-11-13 13:15:49 +00:00
labels
members Bug 23788: Recalculate ammount due for selected accountlines 2019-11-11 10:32:45 +00:00
misc Bug 23846: Handle exception gracefully at the OPAC 2019-11-13 08:04:23 +00:00
offline_circ
opac Bug 23846: Handle exception gracefully at the OPAC 2019-11-13 08:04:23 +00:00
OpenILS
patron_lists
patroncards
plugins
reports Bug 23805: (QA follow-up) Corrections for cash_register_stats 2019-10-31 17:49:54 +00:00
reserve Bug 22922: Use jQuery datepicker instead of <input type="date"> 2019-10-21 10:01:01 +01:00
reviews Bug 18789: Send Koha::Patron object to the templates 2018-02-16 13:03:58 -03:00
rotating_collections
serials Bug 23435: Add multiple copies of an item when receiving in serials 2019-10-17 14:59:40 +01:00
services
skel
suggestion Bug 18743: Fix suggestion listing when organized by library 2019-10-25 13:16:29 +01:00
svc Bug 23427: Simplify sort logic 2019-11-07 13:25:10 +00:00
t Bug 24030: Remove OldWay comparaison from GetItemsForInventory.t 2019-11-13 13:25:24 +00:00
tags
tmp/modified_authorities
tools Bug 23762: Editing is_html status of email template fails under multi-languages 2019-11-03 07:34:52 +00:00
virtualshelves
xt
.editorconfig
.eslintrc.json Bug 23834: Add default ESLint configuration 2019-11-03 08:02:39 +00:00
.gitignore
.htaccess
.mailmap Update mailmap - Jonathan Druart 2017-06-21 12:42:19 -03:00
.scss-lint.yml
about.pl Bug 23655: Restore debian Jessie support 2019-10-26 12:07:49 +01:00
changelanguage.pl
fix-perl-path.PL
gulpfile.js
help.pl
INSTALL
Koha.pm Bug 23293: DBRev 19.06.00.050 2019-11-07 13:20:40 +00:00
koha_perl_deps.pl Bug 20019: use Modern::Perl in misc perl scripts 2018-02-05 09:47:08 -03:00
kohaversion.pl Bug 13758: Move the Koha version from kohaversion.pl 2015-05-07 11:39:04 -03:00
LICENSE
mainpage.pl
Makefile.PL Bug 23834: (RM follow-up) Add new file to Makefile.PL 2019-11-04 10:10:04 +00:00
MANIFEST.SKIP
package.json
README
README.md
README.robots
rewrite-config.PL Bug 17851: Add elasticsearch config to koha-conf.xml 2019-10-07 14:09:10 +01:00
yarn.lock

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: This is a synced mirror of the official Koha repo.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo