Skip to content

Commit 4cde8ec

Browse files
committed
Merge pull request #239 from Dantemss/fix_export
Fixed the lists array in the export
2 parents 3906cce + 327f785 commit 4cde8ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/views/questions/_common.jsonify

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@ json.id question.to_param
77
unless @export
88
json.url question_url(question)
99
end
10-
json.lists question.lists.visible_for(present_user).map(&:name)
10+
lists = question.lists
11+
lists = lists.visible_for(present_user) unless @export
12+
json.lists lists.map(&:name)
1113
json.tags question.taggings.map{ |tagging| tagging.tag.name }

0 commit comments

Comments
 (0)