Skip to content

Commit abe274d

Browse files
Update filter of StatisticsAnnouncement
Only present to the user documents without an unpublished edition in the results page for filtering documents to connect to a StatisticsAnnouncement. This prevents a user connecting a draft edition which had unintended consequence of publishing the draft when the StatisticsAnnouncement was saved.
1 parent d500040 commit abe274d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/admin/statistics_announcement_publications_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def params_filters
3535
end
3636

3737
def params_filters_with_default_state
38-
params_filters.reverse_merge("state" => "active")
38+
params_filters.reverse_merge("state" => "active", "without_not_published" => true)
3939
end
4040

4141
def edition_filter_options

0 commit comments

Comments
 (0)