From ac07ac686e109d8ab30db8f6dfc2a84dfe5b8e33 Mon Sep 17 00:00:00 2001 From: verenaroe <49275087+verenaroe@users.noreply.github.com> Date: Wed, 13 Sep 2023 12:00:55 +0200 Subject: [PATCH] Fixed config_filter.yaml for MySQL >= 8.0.3 `SYSTEM` is a reserved word since MySQL 8.0.3. If a user enables the [System Filter](https://github.com/vdlp/oc-redirect-plugin/blob/cd137f1a2d4ec096fb9db7f04a73a6f475d216af/controllers/redirects/config_filter.yaml#L6) the generated query will fail. --- controllers/redirects/config_filter.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/redirects/config_filter.yaml b/controllers/redirects/config_filter.yaml index 9912309..1baf61c 100644 --- a/controllers/redirects/config_filter.yaml +++ b/controllers/redirects/config_filter.yaml @@ -3,8 +3,8 @@ scopes: label: vdlp.redirect::lang.list.switch_system type: switch conditions: - - system <> true - - system = true + - "`system` <> true" + - "`system` = true" is_enabled: label: vdlp.redirect::lang.list.switch_is_enabled type: switch