]> source.dussan.org Git - redmine.git/commitdiff
Merge r22569 from trunk to 5.1-stable (#39862).
authorMarius Balteanu <marius.balteanu@zitec.com>
Wed, 27 Dec 2023 15:43:12 +0000 (15:43 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Wed, 27 Dec 2023 15:43:12 +0000 (15:43 +0000)
git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22570 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb

index 9c09a7870f16de8e7cd4aec1b3da01837c54bbed..43efe8cd3c7dddc00af07d716ab7b13afcdb62bc 100644 (file)
@@ -39,7 +39,7 @@ module Redmine
           end
 
           def param_expression
-            @param_expression ||= Regexp.new("^(#{object_types.join("|")})$")
+            @param_expression ||= Regexp.new("^(#{object_types.to_a.join("|")})$")
           end
         end
       end