From a3b338671dcd9e8211fb6ed58fab794cb3b5d9b1 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Tue, 12 Jan 2016 21:17:07 +1100 Subject: [PATCH] Pass filter conditions thru dongle Minor fix to new YAML syntax in demo theme --- modules/backend/widgets/Filter.php | 3 ++- themes/demo/theme.yaml | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/backend/widgets/Filter.php b/modules/backend/widgets/Filter.php index 923a43ad6..4e674cdb6 100644 --- a/modules/backend/widgets/Filter.php +++ b/modules/backend/widgets/Filter.php @@ -2,6 +2,7 @@ use Db; use Event; +use DbDongle; use Backend\Classes\WidgetBase; use Backend\Classes\FilterScope; use ApplicationException; @@ -370,7 +371,7 @@ class Filter extends WidgetBase $filtered = Db::getPdo()->quote($value); } - $query->whereRaw(strtr($scopeConditions, [':filtered' => $filtered])); + $query->whereRaw(DbDongle::parse(strtr($scopeConditions, [':filtered' => $filtered]))); } /* diff --git a/themes/demo/theme.yaml b/themes/demo/theme.yaml index dc90a6e54..e4958f475 100644 --- a/themes/demo/theme.yaml +++ b/themes/demo/theme.yaml @@ -1,4 +1,5 @@ name: Demo -description: Demo OctoberCMS theme. Demonstrates the basic concepts of the front-end theming: layouts, pages, partials, components, content blocks, AJAX framework. +description: 'Demo OctoberCMS theme. Demonstrates the basic concepts of the front-end theming: layouts, pages, partials, components, content blocks, AJAX framework.' author: OctoberCMS -homepage: 'http://octobercms.com' \ No newline at end of file +homepage: 'http://octobercms.com' +code: ''