Fix broken category list per post
The count created a grouping leading to only one result instead of all categories.
This commit is contained in:
parent
924a6b4863
commit
bf660d15fc
1 changed files with 2 additions and 2 deletions
|
@ -61,11 +61,11 @@ page {
|
||||||
as = assignedTopics
|
as = assignedTopics
|
||||||
table = sys_category
|
table = sys_category
|
||||||
pidInList = 2
|
pidInList = 2
|
||||||
selectFields = sys_category.*, count(sys_category_record_mm.uid_foreign) as count
|
selectFields = sys_category.*
|
||||||
where = sys_category_record_mm.uid_foreign = {page:uid} AND sys_category.parent = 1
|
where = sys_category_record_mm.uid_foreign = {page:uid} AND sys_category.parent = 1
|
||||||
where.insertData = 1
|
where.insertData = 1
|
||||||
leftjoin = sys_category_record_mm ON sys_category_record_mm.uid_local = sys_category.uid
|
leftjoin = sys_category_record_mm ON sys_category_record_mm.uid_local = sys_category.uid
|
||||||
orderBy = count DESC, sys_category.title ASC
|
orderBy = sys_category.title ASC
|
||||||
|
|
||||||
# Workaround broken workspace manipulation
|
# Workaround broken workspace manipulation
|
||||||
if {
|
if {
|
||||||
|
|
Loading…
Reference in a new issue