add controller_additionals_journals_edit_post hook

This commit is contained in:
Alexander Meindl 2024-03-24 11:41:38 +01:00
parent 12ff57da7c
commit 80fff983a4

View File

@ -28,6 +28,7 @@ class AdditionalsJournalsController < ApplicationController
@journal.safe_attributes = journal_attributes
@journal.save
@journal.destroy if @journal.details.empty? && @journal.notes.blank?
call_hook(:controller_additionals_journals_edit_post, { journal: @journal, params: params })
respond_to do |format|
format.html { redirect_after_update }
format.js { render 'additionals_journals/update' }