From 54cea4eb7581199f2f38a12d0db6ddf63ac65343 Mon Sep 17 00:00:00 2001 From: Jose Farias Date: Thu, 17 Oct 2024 22:09:34 -0600 Subject: [PATCH] clear_assignees_if_unassigned -> clear_assignees --- app/controllers/bubbles_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/bubbles_controller.rb b/app/controllers/bubbles_controller.rb index 2bee3d7fc..7cb4c0be3 100644 --- a/app/controllers/bubbles_controller.rb +++ b/app/controllers/bubbles_controller.rb @@ -2,7 +2,7 @@ class BubblesController < ApplicationController include BucketScoped before_action :set_bubble, only: %i[ show edit update ] - before_action :clear_assignees_if_unassigned, only: :index + before_action :clear_assignees, only: :index before_action :set_view, :set_tag_filters, :set_assignee_filters, only: :index def index @@ -43,7 +43,7 @@ class BubblesController < ApplicationController params.require(:bubble).permit(:title, :color, :due_on, :image, tag_ids: []) end - def clear_assignees_if_unassigned + def clear_assignees params[:assignee_ids] = nil if helpers.unassigned_filter_activated? end