Commit 8ffea7e4461f4b186510ada81be1d8e714163d80
1 parent
f21a6f8e
Exists in
master
and in
8 other branches
Send email template param when approve a task
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
views/proposals_discussion_plugin_tasks/index.html.erb
... | ... | @@ -180,8 +180,9 @@ |
180 | 180 | |
181 | 181 | if(flag_action == 'approve_proposal'){ |
182 | 182 | params['article_parent_id'] = form.find('#tasks_' + task_id + '_task_article_parent_id').val(); |
183 | + params['email_template_id'] = form.find('#on-accept-information-'+task_id+' #tasks_' + task_id + '_task_email_template_id').val(); | |
183 | 184 | } else if(flag_action == 'reprove_proposal') { |
184 | - params['email_template_id'] = form.find('#tasks_' + task_id + '_task_email_template_id').val(); | |
185 | + params['email_template_id'] = form.find('#on-reject-information-'+task_id+' #tasks_' + task_id + '_task_email_template_id').val(); | |
185 | 186 | } |
186 | 187 | |
187 | 188 | jQuery.post(url + "/" + flag_action, params , | ... | ... |