Commit 787f8800 by Waqas Khalid

Click on posts I'm following should load threads

When as course moderator when we click on posts
I'm followng from sidebar dropdown it gives error
that threads cannot be loaded. It should show all
the threads the user is following.

TNL-469
parent b6a5bea0
...@@ -549,6 +549,7 @@ describe "DiscussionThreadListView", -> ...@@ -549,6 +549,7 @@ describe "DiscussionThreadListView", ->
, ,
"Following" "Following"
) )
expect($.ajax.mostRecentCall.args[0].data.group_id).toBeUndefined();
it "should get threads for the selected leaf", -> it "should get threads for the selected leaf", ->
testSelectionRequest( testSelectionRequest(
......
...@@ -188,7 +188,6 @@ if Backbone? ...@@ -188,7 +188,6 @@ if Backbone?
options.group_id = @group_id options.group_id = @group_id
when 'followed' when 'followed'
options.user_id = window.user.id options.user_id = window.user.id
options.group_id = "all"
when 'commentables' when 'commentables'
options.commentable_ids = @discussionIds options.commentable_ids = @discussionIds
if @group_id if @group_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment