Pass filter conditions thru dongle
Minor fix to new YAML syntax in demo theme
This commit is contained in:
parent
e5aa1d651c
commit
a3b338671d
|
|
@ -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])));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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: ''
|
||||
|
|
|
|||
Loading…
Reference in New Issue