From 1c3891b05af15604d2fe7d71b57ea32567051398 Mon Sep 17 00:00:00 2001 From: Nicolae Claudius Date: Sat, 30 Jun 2012 19:20:20 +0300 Subject: [PATCH] fix "add another NS" --- app/views/domains/_form_association_footer.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/domains/_form_association_footer.html.erb b/app/views/domains/_form_association_footer.html.erb index b9aea05..d7bac2e 100644 --- a/app/views/domains/_form_association_footer.html.erb +++ b/app/views/domains/_form_association_footer.html.erb @@ -12,8 +12,8 @@ show_add_new = column_show_add_new(column, associated, @record) return unless show_add_new or show_add_existing -edit_associated_url = url_for(:action => 'edit_associated', :id => parent_record.id, :association => column.name, :associated_id => '--ID--', :escape => false, :eid => params[:eid], :parent_controller => params[:parent_controller], :parent_id => params[:parent_id]) if show_add_existing -add_new_url = url_for(:action => 'edit_associated', :id => parent_record.id, :association => column.name, :escape => false, :eid => params[:eid], :parent_controller => params[:parent_controller], :parent_id => params[:parent_id]) if show_add_new +edit_associated_url = params_for(:action => 'edit_associated', :child_association => column.name, :associated_id => '--ID--') if show_add_existing +add_new_url = params_for(:action => 'edit_associated', :child_association => column.name) if show_add_new -%>