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 }