Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
d7f16929
Commit
d7f16929
authored
Dec 11, 2014
by
E. Kolpakov
Committed by
Jonathan Piacenti
Aug 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed erroneous "This post is visible to everyone" when creating group work discussion post.
parent
8a7f0224
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
lms/djangoapps/django_comment_client/base/views.py
+7
-0
No files found.
lms/djangoapps/django_comment_client/base/views.py
View file @
d7f16929
...
...
@@ -25,6 +25,7 @@ from edx_notifications.lib.publisher import (
from
edx_notifications.data
import
NotificationMessage
from
courseware.courses
import
get_course_with_access
,
get_course_by_id
from
openedx.core.djangoapps.course_groups.tasks
import
publish_course_group_notification_task
from
openedx.core.djangoapps.course_groups.cohorts
import
get_cohort_by_id
import
django_comment_client.settings
as
cc_settings
from
django_comment_client.utils
import
(
add_courseware_context
,
...
...
@@ -262,6 +263,12 @@ def create_thread(request, course_id, commentable_id):
add_courseware_context
([
data
],
course
,
user
)
add_thread_group_name
(
data
,
course_key
)
if
thread
.
get
(
'group_id'
)
and
not
thread
.
get
(
'group_name'
):
thread
[
'group_name'
]
=
get_cohort_by_id
(
course_key
,
thread
.
get
(
'group_id'
))
.
name
data
=
thread
.
to_dict
()
add_courseware_context
([
data
],
course
)
if
request
.
is_ajax
():
return
ajax_content_response
(
request
,
course_key
,
data
)
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment