Skip to content

Commit

Permalink
ola sou eu, hook is in place
Browse files Browse the repository at this point in the history
  • Loading branch information
mainframezen committed Jul 6, 2011
1 parent dd75d9b commit 0e91d9d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/customfieldsdeps_controller.rb
Expand Up @@ -52,7 +52,7 @@ def update
master.save
slave.possible_values = slave_values
slave.save
if request.post? and @custdep.update_attributes(params[:customfielddep])
if @custdep.update_attributes(params[:customfielddep])
flash[:notice] = l(:notice_successful_save)
redirect_to :action => "list"
else
Expand Down
1 change: 1 addition & 0 deletions app/views/hooks/_view_issues_form_details_bottom.rhtml
@@ -0,0 +1 @@
ola, sou eu
4 changes: 3 additions & 1 deletion init.rb
Expand Up @@ -2,11 +2,13 @@

RAILS_DEFAULT_LOGGER.info 'Starting this plugin for RedMine'

require_dependency 'redmine_custom_fields_deps/hooks'

Redmine::Plugin.register :redmine_custom_fields_deps do
name 'Redmine Custom Fields Deps plugin'
author 'mainframezen'
description 'Redmine plugin that allows dependant custom fields'
version '0.0.2'
version '0.0.3'
url 'https://github.com/mainframezen/redmine_custom_fields_deps'
author_url 'http://mainframezen.com'
menu :admin_menu, :customfieldsdeps,
Expand Down
7 changes: 7 additions & 0 deletions lib/redmine_custom_fields_deps/hooks.rb
@@ -0,0 +1,7 @@
module CustomFieldsDeps
class Hooks < Redmine::Hook::ViewListener

render_on :view_issues_form_details_bottom,
:partial => 'hooks/view_issues_form_details_bottom'
end
end

0 comments on commit 0e91d9d

Please sign in to comment.