Skip to content

Commit

Permalink
first time edit (#9304)
Browse files Browse the repository at this point in the history
change from issue #9303
  • Loading branch information
nlao1 authored Mar 16, 2021
1 parent 42d9cce commit ee46fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/tag_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def contributors_index
t = Tag.where(name: tagname)
nct = NodeTag.where('tid in (?)', t.collect(&:tid))
@tagdata[tagname][:users] = Node.where('nid IN (?)', nct.collect(&:nid)).collect(&:author).uniq.size
@tagdata[tagname][:wikis] = Node.where("nid IN (?) AND (type = 'page' OR type = 'tool' OR type = 'place')", nct.collect(&:nid)).size
@tagdata[tagname][:wikis] = Node.where("nid IN (?) AND (type = 'page')", nct.collect(&:nid)).size
@tagdata[:notes] = Node.where("nid IN (?) AND type = 'note'", nct.collect(&:nid)).size
end
render template: 'tag/contributors-index'
Expand Down

0 comments on commit ee46fe0

Please sign in to comment.