Make seeded lists public so that new members can see it, too

pull/7301/head
Henriette Dinger 6 years ago
parent 669384f71e
commit 59039170a0
  1. 11
      app/seeders/demo_data/work_package_board_seeder.rb

@ -89,9 +89,12 @@ module DemoData
statuses.to_a.map do |status|
Query.new_default(project: project, user: admin).tap do |query|
# Hide the query
# Hide the query in the main menu
query.hidden = true
# Make it public so that new members can see it too
query.is_public = true
query.name = status.name
# Set filter by this status
query.add_filter('status_id', '=', [status.id])
@ -139,8 +142,12 @@ module DemoData
lists.map do |list|
Query.new(project: project, user: admin).tap do |query|
# Hide the query
# Hide the query in the main menu
query.hidden = true
# Make it public so that new members can see it too
query.is_public = true
query.name = list[:name]
# Set manual sort filter

Loading…
Cancel
Save