diff options
author | jomo <github@jomo.tv> | 2016-03-08 23:58:07 +0100 |
---|---|---|
committer | jomo <github@jomo.tv> | 2016-03-08 23:58:07 +0100 |
commit | 78ddfadb342b715fdd4430495c5ba07152ace597 (patch) | |
tree | 8fef24f0397b8ad017b3c51bae35c8760e0793b7 | |
parent | 82d4b1d27b7ae34ca9651e6e100b2bc4cd44ff98 (diff) |
don't ignore :label_id on thread creation
-rw-r--r-- | app/controllers/forumthreads_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/forumthreads_controller.rb b/app/controllers/forumthreads_controller.rb index aa4aeec..ac090f5 100644 --- a/app/controllers/forumthreads_controller.rb +++ b/app/controllers/forumthreads_controller.rb @@ -22,7 +22,7 @@ class ForumthreadsController < ApplicationController end def create - @thread = Forumthread.new(mod? ? thread_params([:sticky, :locked, :forum_id]) : thread_params([:forum_id])) + @thread = Forumthread.new(mod? ? thread_params([:sticky, :locked, :forum_id, :label_id]) : thread_params([:forum_id, :label_id])) if @thread.forum.can_write?(current_user) @thread.user_author = current_user if @thread.save |