Commit aec767faaf6bff50e4312f01f292b50c621ff0fc

Authored by Michel Felipe
1 parent bf59537c

Validate all kinds of proposal tasks (validated,approved...) to require at least one category

lib/proposals_discussion_plugin/proposal_task.rb
... ... @@ -261,7 +261,7 @@ class ProposalsDiscussionPlugin::ProposalTask < Task
261 261 protected
262 262  
263 263 def require_category
264   - if categories.count == 0 && flagged?
  264 + if categories.count == 0
265 265 errors.add :categories, _('Select at least one category')
266 266 end
267 267 end
... ...