Pass filter conditions thru dongle

Minor fix to new YAML syntax in demo theme
This commit is contained in:
Samuel Georges 2016-01-12 21:17:07 +11:00
parent e5aa1d651c
commit a3b338671d
2 changed files with 5 additions and 3 deletions

View File

@ -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])));
}
/*

View File

@ -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'
homepage: 'http://octobercms.com'
code: ''