Patch #2599 » more_hooks.diff
| app/controllers/custom_fields_controller.rb (Arbeitskopie) | ||
|---|---|---|
|
if request.post? and @custom_field.save
|
||
|
flash[:notice] = l(:notice_successful_create)
|
||
|
redirect_to :action => 'index', :tab => @custom_field.class.name
|
||
|
call_hook(:controller_custom_fields_new_after_save, :params => params, :custom_field => @custom_field)
|
||
|
end
|
||
|
@trackers = Tracker.find(:all, :order => 'position')
|
||
|
end
|
||
| ... | ... | |
|
if request.post? and @custom_field.update_attributes(params[:custom_field])
|
||
|
flash[:notice] = l(:notice_successful_update)
|
||
|
redirect_to :action => 'index', :tab => @custom_field.class.name
|
||
|
call_hook(:controller_custom_fields_edit_after_save, :params => params, :custom_field => @custom_field)
|
||
|
end
|
||
|
@trackers = Tracker.find(:all, :order => 'position')
|
||
|
end
|
||