add controller_additionals_journals_edit_post hook
This commit is contained in:
parent
12ff57da7c
commit
80fff983a4
@ -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' }
|
||||
|
Loading…
Reference in New Issue
Block a user