Explorar o código

Allow wizard and user fields in custom_title

Angus McLeod %!s(int64=6) %!d(string=hai) anos
pai
achega
a1f4d6fdf9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/builder.rb

+ 1 - 1
lib/builder.rb

@@ -249,7 +249,7 @@ class CustomWizard::Builder
 
   def create_topic(user, action, data)
     if action['custom_title']
-      title = action['custom_title']
+      title = CustomWizard::Builder.fill_placeholders(action['custom_title'], user, data)
     else
       title = data[action['title']]
     end