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)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 5 May 2023 22:19:33 +0000 (22:19 +0000)
commitd7b5cbf075241f84d06edaa08f40b129229a80c5
tree2c67f8071f0338cf4fc33aa25c3e6c83e5c72b60
parent4eef6474806c4d78672254dbed7083dd79fc0ac3
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>
(cherry picked from commit 99f8273673b7e2189fff5846bdeacff70e0a48ed)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
(cherry picked from commit 30260ece2f567823da7189abf5ebd0a43caa526a)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
cataloguing/editor.pl