Sushimaster
Member
- Affected version
- 2.1.7
Hi,
when creating a thread via API (obviously only then!), which has flag "discussion_state = moderated", it means the thread should be hidden from "normal" users in forum/node view and node listing, but it IS visible on node list "most recent thread". See screenshot:
By click on that link, a normal user just see standard error. Moderators/admins can see/edit them as it should be.
However, it seems the sql query to gather info for the node list entry (on screenshot) doesn't take careabout "discussion_state" flag at all.
Affected template is "node_list_forum" around line 109, class id "node-extra". $extras.LastThread holds the "wrong" information.
In the node view the thread is - correctly - invisible, it's just the "recent/last thread" thing in the node list.
It's just in that particular place, anywhere else it's correctly displayed (== not displayed) like overview or even the xml sitemap. Everythings fine, except node list.
when creating a thread via API (obviously only then!), which has flag "discussion_state = moderated", it means the thread should be hidden from "normal" users in forum/node view and node listing, but it IS visible on node list "most recent thread". See screenshot:
By click on that link, a normal user just see standard error. Moderators/admins can see/edit them as it should be.
However, it seems the sql query to gather info for the node list entry (on screenshot) doesn't take careabout "discussion_state" flag at all.
Affected template is "node_list_forum" around line 109, class id "node-extra". $extras.LastThread holds the "wrong" information.
In the node view the thread is - correctly - invisible, it's just the "recent/last thread" thing in the node list.
It's just in that particular place, anywhere else it's correctly displayed (== not displayed) like overview or even the xml sitemap. Everythings fine, except node list.