Skip to content

Commit

Permalink
restore the not answered
Browse files Browse the repository at this point in the history
  • Loading branch information
alecslupu committed Aug 9, 2024
1 parent e7aa3d4 commit fd942a3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ def default_filter_params
end

def default_states
Decidim::CustomProposalStates::ProposalState.where(component: current_component).pluck(:token).map(&:to_s)
[
Decidim::CustomProposalStates::ProposalState.where(component: current_component).where.not(token: :not_answered).pluck(:token).map(&:to_s),
%w(state_not_published)
].flatten
end
end
end
Expand Down

0 comments on commit fd942a3

Please sign in to comment.