fix period query

This commit is contained in:
Jean-Christian Paul Denis 2023-04-23 00:40:29 +02:00
parent 304e5974c6
commit a96b694ed1
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -72,6 +72,7 @@ class Utils
$sql->columns($params['columns']);
}
$sql->columns([
'T.periodical_id',
'T.periodical_title',
'T.periodical_curdt',
'T.periodical_enddt',
@ -93,9 +94,9 @@ class Utils
if (!empty($params['where'])) {
$sql->where($params['where']);
$sql->and('P.blog_id = ' . $sql->quote((string) dcCore::app()->blog?->id));
$sql->and('T.blog_id = ' . $sql->quote((string) dcCore::app()->blog?->id));
} else {
$sql->where('P.blog_id = ' . $sql->quote((string) dcCore::app()->blog?->id));
$sql->where('T.blog_id = ' . $sql->quote((string) dcCore::app()->blog?->id));
}
if (isset($params['periodical_type'])) {