Commit aec767faaf6bff50e4312f01f292b50c621ff0fc
1 parent
bf59537c
Exists in
proposal_task_category_required
Validate all kinds of proposal tasks (validated,approved...) to require at least one category
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/proposals_discussion_plugin/proposal_task.rb
@@ -261,7 +261,7 @@ class ProposalsDiscussionPlugin::ProposalTask < Task | @@ -261,7 +261,7 @@ class ProposalsDiscussionPlugin::ProposalTask < Task | ||
261 | protected | 261 | protected |
262 | 262 | ||
263 | def require_category | 263 | def require_category |
264 | - if categories.count == 0 && flagged? | 264 | + if categories.count == 0 |
265 | errors.add :categories, _('Select at least one category') | 265 | errors.add :categories, _('Select at least one category') |
266 | end | 266 | end |
267 | end | 267 | end |