From 24b854f37e61c3a67d989e381895b22624d6f21f Mon Sep 17 00:00:00 2001 From: Markus Kahl Date: Fri, 15 Jun 2018 09:22:18 +0100 Subject: [PATCH] fixed patch (new param); added bug backlog --- lib/open_project/backlogs/patches/project_seeder_patch.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/open_project/backlogs/patches/project_seeder_patch.rb b/lib/open_project/backlogs/patches/project_seeder_patch.rb index 49f5d75fc7..cbd1b1a772 100644 --- a/lib/open_project/backlogs/patches/project_seeder_patch.rb +++ b/lib/open_project/backlogs/patches/project_seeder_patch.rb @@ -39,10 +39,10 @@ module OpenProject::Backlogs::Patches::ProjectSeederPatch end module InstanceMethods - def seed_versions(project) + def seed_versions(project, key) super - versions = I18n.t('seeders.demo_data.project.versions') + versions = Array(I18n.t("seeders.demo_data.projects.#{key}")[:versions]) .map { |data| Version.find_by(name: data[:name]) } .compact @@ -58,6 +58,7 @@ module OpenProject::Backlogs::Patches::ProjectSeederPatch { 'Sprint 1' => VersionSetting::DISPLAY_LEFT, 'Sprint 2' => VersionSetting::DISPLAY_LEFT, + 'Bug Backlog' => VersionSetting::DISPLAY_RIGHT, 'Product Backlog' => VersionSetting::DISPLAY_RIGHT, 'Wish List' => VersionSetting::DISPLAY_RIGHT }