Explorar el Código

Allow wizard and user fields in custom_title

Angus McLeod hace 6 años
padre
commit
a1f4d6fdf9
Se han modificado 1 ficheros con 1 adiciones y 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