From fe124800ca6e2f6c5d6445e60a1fe0551fdb5d36 Mon Sep 17 00:00:00 2001 From: Bohung Date: Tue, 11 May 2021 10:48:50 +0800 Subject: [PATCH] Fix bug. --- app/views/admin/ruling_templates/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/ruling_templates/_form.html.erb b/app/views/admin/ruling_templates/_form.html.erb index e4430ed..85feaf7 100644 --- a/app/views/admin/ruling_templates/_form.html.erb +++ b/app/views/admin/ruling_templates/_form.html.erb @@ -36,7 +36,7 @@
<%= f.label :allow_domain, t("ruling_template.allow_domain"), :class => "control-label muted" %>
- <%= f.text_field :allow_domain, placeholder: 'example.com' %> + <%= f.text_field :allow_domain, placeholder: 'example.com', :value=>(f.object.allow_domain.class==Array ? f.object.allow_domain.join(",") : f.object.allow_domain) %>