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 8a9dfd6 commit e7aa3d4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def proposal_state_css_class(proposal)
def filter_proposals_state_values
Decidim::CheckBoxesTreeHelper::TreeNode.new(
Decidim::CheckBoxesTreeHelper::TreePoint.new("", t("decidim.proposals.application_helper.filter_state_values.all")),
Decidim::CustomProposalStates::ProposalState.where(component: current_component).collect do |state|
Decidim::CheckBoxesTreeHelper::TreePoint.new("state_not_published", t("decidim.proposals.application_helper.filter_state_values.not_answered")),
Decidim::CustomProposalStates::ProposalState.where(component: current_component).where.not(token: :not_answered).collect do |state|
Decidim::CheckBoxesTreeHelper::TreePoint.new(state.token, translated_attribute(state.title))
end
)
Expand Down

0 comments on commit e7aa3d4

Please sign in to comment.