-
Type:
Improvement
-
Status: Unverified Fix (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.1.9
-
Fix Version/s: 3.1.10-RC1
-
Component/s: None
-
Labels:
We already have an event for normal topics in view forum (core.viewforum_get_topic_ids_data), however I've run into an issue where I need one for announcements.
$sql_ary = array( |
'SELECT' => $sql_anounce_array['SELECT'], |
'FROM' => $sql_array['FROM'], |
'LEFT_JOIN' => $sql_anounce_array['LEFT_JOIN'], |
|
'WHERE' => '(t.forum_id = ' . $forum_id . ' |
AND t.topic_type = ' . POST_ANNOUNCE . ') OR |
(' . $db->sql_in_set('t.forum_id', $g_forum_ary) . ' |
AND t.topic_type = ' . POST_GLOBAL . ')', |
|
'ORDER_BY' => 't.topic_time DESC', |
);
|
I'll be writing a PR soon.