Patch #2341
Updated by Andriy Lesyuk about 8 years ago
Simple patch fixing the issue, but dropping the compatibility with old redmine:
<pre>
===================================================================
--- project_alias.rb (revision 19)
+++ project_alias.rb (working copy)
@@ -4,7 +4,7 @@
if defined? ChiliProject
IDENTIFIER_RE = /^(?!\d+$)[a-z0-9\-_]*$/
else
- IDENTIFIER_RE = /^(?!\d+$)[a-z0-9\-]*$/
+ IDENTIFIER_RE = /^(?!\d+$)[a-z0-9\-_]*$/
end
validates_presence_of :project, :alias
</pre>
<pre>
===================================================================
--- project_alias.rb (revision 19)
+++ project_alias.rb (working copy)
@@ -4,7 +4,7 @@
if defined? ChiliProject
IDENTIFIER_RE = /^(?!\d+$)[a-z0-9\-_]*$/
else
- IDENTIFIER_RE = /^(?!\d+$)[a-z0-9\-]*$/
+ IDENTIFIER_RE = /^(?!\d+$)[a-z0-9\-_]*$/
end
validates_presence_of :project, :alias
</pre>