From 3f7d7beedda46115b5cdd1b4cf202d9448642339 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Wed, 15 Jul 2026 10:55:04 +0300 Subject: [PATCH] fix sharing toggle --- app/views/templates_code_modal/show.html.erb | 2 +- app/views/templates_preferences/show.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/templates_code_modal/show.html.erb b/app/views/templates_code_modal/show.html.erb index 46e9c893..c7bce02f 100644 --- a/app/views/templates_code_modal/show.html.erb +++ b/app/views/templates_code_modal/show.html.erb @@ -26,7 +26,7 @@ <%= t('share_template_with_test_mode') %> - <%= f.check_box :value, class: 'toggle', checked: @template.template_sharings.exists?(account_id: current_account.testing_accounts) %> + <%= f.check_box :value, class: 'toggle', checked: @template.template_sharings.exists?(account_id: true_user.account.testing_accounts) %> <% end %> diff --git a/app/views/templates_preferences/show.html.erb b/app/views/templates_preferences/show.html.erb index 0b2ecc27..058fa6ba 100644 --- a/app/views/templates_preferences/show.html.erb +++ b/app/views/templates_preferences/show.html.erb @@ -190,7 +190,7 @@ <%= t('share_template_with_test_mode') %> - <%= f.check_box :value, class: 'toggle', checked: @template.template_sharings.exists?(account_id: current_account.testing_accounts) %> + <%= f.check_box :value, class: 'toggle', checked: @template.template_sharings.exists?(account_id: true_user.account.testing_accounts) %> <% end %>