From 73ed8ef6bd596ee89e312d131d03ef8671c3eb98 Mon Sep 17 00:00:00 2001 From: cavis Date: Tue, 8 Aug 2023 16:24:38 -0600 Subject: [PATCH] Fix replacing uncut files --- app/views/episode_media/_form_uncut.html.erb | 2 +- app/views/episode_media/media/_complete.html.erb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/episode_media/_form_uncut.html.erb b/app/views/episode_media/_form_uncut.html.erb index 524c027fd..e628f6399 100644 --- a/app/views/episode_media/_form_uncut.html.erb +++ b/app/views/episode_media/_form_uncut.html.erb @@ -1,4 +1,4 @@ -<%= form.fields_for :uncut, episode.uncut || episode.build_uncut do |fields| %> +<%= form.fields_for :uncut, episode.uncut || episode.build_uncut, include_id: false do |fields| %> <%= turbo_frame_tag "episode-media-uncut" do %>
diff --git a/app/views/episode_media/media/_complete.html.erb b/app/views/episode_media/media/_complete.html.erb index 236f3c286..357096c21 100644 --- a/app/views/episode_media/media/_complete.html.erb +++ b/app/views/episode_media/media/_complete.html.erb @@ -1,3 +1,5 @@ +<%= form.hidden_field :id %> +