From 31334f4637462303f0fc885639cbb5190f24525f Mon Sep 17 00:00:00 2001 From: Karel Picman Date: Fri, 17 Mar 2017 14:19:06 +0100 Subject: [PATCH] 'Save as' from Excel does not work when using project names #700 --- lib/redmine_dmsf/webdav/project_resource.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine_dmsf/webdav/project_resource.rb b/lib/redmine_dmsf/webdav/project_resource.rb index c6b93eff..8a982f7a 100644 --- a/lib/redmine_dmsf/webdav/project_resource.rb +++ b/lib/redmine_dmsf/webdav/project_resource.rb @@ -122,7 +122,7 @@ module RedmineDmsf # 1. Invalid characters are replaced with a dot. # 2. Two or more dots in a row are replaced with a single dot. # (3. Windows WebClient does not like a dot at the end, but since the project id tag is appended this is not a problem.) - "#{p.name.gsub(DmsfFolder.INVALID_CHARACTERS, ".").gsub(/\.{2,}/, '.')} #{p.id}" unless p.nil? + "#{p.name.gsub(DmsfFolder::INVALID_CHARACTERS, ".").gsub(/\.{2,}/, '.')} #{p.id}" unless p.nil? else p.identifier unless p.nil? end