From ec88af0cc0304aeb212163ac706311129bb7310b Mon Sep 17 00:00:00 2001 From: merefield Date: Tue, 18 Jul 2023 13:53:09 +0100 Subject: [PATCH] FIX: also delete Category Cust Fld for wizrds with names of mult words --- lib/custom_wizard/template.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/custom_wizard/template.rb b/lib/custom_wizard/template.rb index 59a9998e..9fa197f7 100644 --- a/lib/custom_wizard/template.rb +++ b/lib/custom_wizard/template.rb @@ -64,7 +64,7 @@ class CustomWizard::Template ensure_wizard_upload_references!(wizard_id) PluginStore.remove(CustomWizard::PLUGIN_NAME, wizard.id) clear_user_wizard_redirect(wizard_id, after_time: !!wizard.after_time) - related_custom_fields = CategoryCustomField.where(name: 'create_topic_wizard', value: wizard.name) + related_custom_fields = CategoryCustomField.where(name: 'create_topic_wizard', value: wizard.name.parameterize.underscore) related_custom_fields.destroy_all end