From e0de854efb9e2a8b127e8089ff29538bb47db797 Mon Sep 17 00:00:00 2001 From: unikounio Date: Thu, 9 May 2024 23:36:28 +0900 Subject: [PATCH] =?UTF-8?q?WIP=E7=8A=B6=E6=85=8B=E3=81=AE=E6=97=A5?= =?UTF-8?q?=E5=A0=B1=E3=82=92=E6=8F=90=E5=87=BA=E3=81=99=E3=82=8B=E9=9A=9B?= =?UTF-8?q?=E3=81=AB=E3=82=A8=E3=83=A9=E3=83=BC=E3=81=8C=E7=99=BA=E7=94=9F?= =?UTF-8?q?=E3=81=97=E3=81=9F=E5=A0=B4=E5=90=88=E3=81=AE=E3=83=90=E3=82=B0?= =?UTF-8?q?=E3=82=92=E8=A7=A3=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/reports_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb index fcd05638e1e..8c32be3fa3f 100644 --- a/app/controllers/reports_controller.rb +++ b/app/controllers/reports_controller.rb @@ -58,6 +58,7 @@ def create end def update + before_wip_status = @report.wip set_wip @report.practice_ids = nil if params[:report][:practice_ids].nil? @report.assign_attributes(report_params) @@ -66,6 +67,7 @@ def update Newspaper.publish(:report_save, { report: @report }) redirect_to redirect_url(@report), notice: notice_message(@report), flash: flash_contents(@report) else + @report.wip = before_wip_status render :edit end end