User Thread List throws error if they have posted in a forum that is no longer published · Issue #205 · i7MEDIA/mojoportal · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add forum module to a page and create a forum
Add a post to the forum
Remove the forum module from the page, don't delete it
Go to Member List > Manage > User Activity > View Posts
The sql needs to return a -1 for PageId if it's null. Relevant corrected sql is below
PageID = ISNULL((SELECT TOP 1 PageID FROM mp_PageModules WHERE mp_PageModules.ModuleID = f.ModuleID AND (PublishEndDate IS NULL OR PublishEndDate > getutcdate())), -1),
which needs to replace this
(SELECT TOP 1 PageID FROM mp_PageModules WHERE mp_PageModules.ModuleID = f.ModuleID AND (PublishEndDate IS NULL OR PublishEndDate > getutcdate()) ) As PageID,
in [mp_ForumThreads_SelectPageByUser] stored procedure
need to do similar in other db layers
The text was updated successfully, but these errors were encountered:
Add forum module to a page and create a forum
Add a post to the forum
Remove the forum module from the page, don't delete it
Go to Member List > Manage > User Activity > View Posts
The sql needs to return a -1 for PageId if it's null. Relevant corrected sql is below
PageID = ISNULL((SELECT TOP 1 PageID FROM mp_PageModules WHERE mp_PageModules.ModuleID = f.ModuleID AND (PublishEndDate IS NULL OR PublishEndDate > getutcdate())), -1),
which needs to replace this
(SELECT TOP 1 PageID FROM mp_PageModules WHERE mp_PageModules.ModuleID = f.ModuleID AND (PublishEndDate IS NULL OR PublishEndDate > getutcdate()) ) As PageID,
in [mp_ForumThreads_SelectPageByUser] stored procedure
need to do similar in other db layers
The text was updated successfully, but these errors were encountered: