From b58c20c60ccd3857677ffc8a5ce981916c0e3313 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 24 Nov 2017 14:03:39 +0800 Subject: [PATCH] Use a new template field --- .../discourse/templates/components/wizard-custom-action.hbs | 4 ++-- lib/builder.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/javascripts/discourse/templates/components/wizard-custom-action.hbs b/assets/javascripts/discourse/templates/components/wizard-custom-action.hbs index 6df48e7b..5e23a218 100644 --- a/assets/javascripts/discourse/templates/components/wizard-custom-action.hbs +++ b/assets/javascripts/discourse/templates/components/wizard-custom-action.hbs @@ -59,7 +59,7 @@
- {{d-editor value=action.post + {{d-editor value=action.post_template placeholder='admin.wizard.action.post_builder.placeholder' classNames='post-builder-editor'}}
@@ -109,7 +109,7 @@
- {{d-editor value=action.post + {{d-editor value=action.post_template placeholder='admin.wizard.action.post_builder.placeholder' classNames='post-builder-editor'}}
diff --git a/lib/builder.rb b/lib/builder.rb index 6eace558..538e95f0 100644 --- a/lib/builder.rb +++ b/lib/builder.rb @@ -186,7 +186,7 @@ class CustomWizard::Builder title = data[a['title']] if a['post_builder'] - post = CustomWizard::Builder.build_post(a['post'], user, data) + post = CustomWizard::Builder.build_post(a['post_template'], user, data) else post = data[a['post']] end @@ -248,7 +248,7 @@ class CustomWizard::Builder title = data[a['title']] if a['post_builder'] - post = CustomWizard::Builder.build_post(a['post'], user, data) + post = CustomWizard::Builder.build_post(a['post_template'], user, data) else post = data[a['post']] end