]> git.koha-community.org Git - koha.git/commit
Bug 33375: Quote reserved keyword 'rank' in advanced editor
authorDavid Cook <dcook@prosentient.com.au>
Fri, 31 Mar 2023 00:55:56 +0000 (00:55 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 14 Apr 2023 14:35:26 +0000 (11:35 -0300)
commit99f8273673b7e2189fff5846bdeacff70e0a48ed
tree951180a5262faa136b927b82d104da82b612538e
parent668252503d3893391d0399537fd6f787cce507c4
Bug 33375: Quote reserved keyword 'rank' in advanced editor

This change quotes the 'rank' keyword in the advanced editor,
so that it doesn't cause fatal crashes when using MySQL 8

Test plan:
0. Apply patch and koha-plack --restart kohadev
1. Enable advanced editor
http://localhost:8081/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=EnableAdvancedCatalogingEditor
2. Go to http://localhost:8081/cgi-bin/koha/cataloguing/editor.pl#new/
3. Click on "Advanced" on the left nav
4. Note that "LIBRARY OF CONGRESS" is ordered before "NATIONAL LIBRARY OF FRANCE"
5. Rejoice!

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
cataloguing/editor.pl