From 59039170a0668641c5c292c5463acc780b9679d5 Mon Sep 17 00:00:00 2001 From: Henriette Dinger Date: Thu, 16 May 2019 14:20:38 +0200 Subject: [PATCH] Make seeded lists public so that new members can see it, too --- app/seeders/demo_data/work_package_board_seeder.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/seeders/demo_data/work_package_board_seeder.rb b/app/seeders/demo_data/work_package_board_seeder.rb index 8b29c1affa..15287dc6e2 100644 --- a/app/seeders/demo_data/work_package_board_seeder.rb +++ b/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