From ab97fbec61fe79abfc6db16cde45181fb962f559 Mon Sep 17 00:00:00 2001 From: Xavi Vila Date: Fri, 27 Sep 2019 07:26:42 +0100 Subject: [PATCH] always upload old style and new style methodologies --- lib/dradis/plugins/projects/upload/v3/template.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/dradis/plugins/projects/upload/v3/template.rb b/lib/dradis/plugins/projects/upload/v3/template.rb index f7240c3..b91b461 100644 --- a/lib/dradis/plugins/projects/upload/v3/template.rb +++ b/lib/dradis/plugins/projects/upload/v3/template.rb @@ -70,12 +70,11 @@ def finalize_lists # Private: Restore Board, List and Card information from the project # template. def parse_methodologies(template) - if template_version == 1 - # Restore Board from old xml methodology format - process_v1_methodologies(template) - else - process_v2_methodologies(template) - end + # old methodologies format + process_v1_methodologies(template) + + # new methodologies format + process_v2_methodologies(template) end # Private: For each XML card block, we're creating a new Card instance,