From 78ddfadb342b715fdd4430495c5ba07152ace597 Mon Sep 17 00:00:00 2001 From: jomo Date: Tue, 8 Mar 2016 23:58:07 +0100 Subject: [PATCH] don't ignore :label_id on thread creation --- app/controllers/forumthreads_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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