mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 06:56:54 +08:00
Change indexing in task names in export-all PDF [SCI-2817]
This commit is contained in:
parent
dc91be3749
commit
efb4e0c549
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue