Change indexing in task names in export-all PDF [SCI-2817]

This commit is contained in:
Matej Zrimšek 2018-11-08 21:01:09 +01:00
parent dc91be3749
commit efb4e0c549

View file

@ -92,12 +92,10 @@ class TeamZipExport < ZipExport
# Include all modules
ex.my_modules.order(:workflow_order)
.each_with_index do |my_module, mod_ind|
.each_with_index do |my_module, mod_pos|
mod_pos =
my_module.workflow_order == -1 ? '' : my_module.workflow_order
my_module_path = "#{experiment_path}/" \
"#{mod_pos} #{to_filesystem_name(my_module.name)} (#{mod_ind})"
"(#{mod_pos}) #{to_filesystem_name(my_module.name)}"
FileUtils.mkdir_p(my_module_path)
# Create upper directories for both elements