diff --git a/app/assets/v2/js/pages/bounty_details.js b/app/assets/v2/js/pages/bounty_details.js index c1f6e5022c1..120fc7d54a8 100644 --- a/app/assets/v2/js/pages/bounty_details.js +++ b/app/assets/v2/js/pages/bounty_details.js @@ -886,7 +886,8 @@ const appendGithubSyncButton = function(result) { '/sync/get_issue_details?url=' + encodeURIComponent(result['github_url']) + '&token=' + currentProfile.githubToken ).then(function(result) { const payload = JSON.stringify({ - issue_description: result.description + issue_description: result.description, + title: result.title }); return $.post('/bounty/change/' + bountyId, payload).then( diff --git a/app/dashboard/views.py b/app/dashboard/views.py index b9de3eadb12..3904dd33156 100644 --- a/app/dashboard/views.py +++ b/app/dashboard/views.py @@ -3018,8 +3018,20 @@ def change_bounty(request, bounty_id): else: raise Http404 - keys = ['experience_level', 'project_length', 'bounty_type', 'featuring_date', 'bounty_categories', 'issue_description', - 'permission_type', 'project_type', 'reserved_for_user_handle', 'is_featured', 'admin_override_suspend_auto_approval'] + keys = [ + 'title', + 'experience_level', + 'project_length', + 'bounty_type', + 'featuring_date', + 'bounty_categories', + 'issue_description', + 'permission_type', + 'project_type', + 'reserved_for_user_handle', + 'is_featured', + 'admin_override_suspend_auto_approval' + ] if request.body: can_change = (bounty.status in Bounty.OPEN_STATUSES) or \