# HG changeset patch # User Marcin Kuzminski # Date 2020-10-09 07:39:27 # Node ID 7cc4ee55d8b820558a7a9e182c94a62998cb0aad # Parent 6a8835849e04b7a82187c5d2368d92bc3b580a36 pull-requests: fixed creation of pr after new serialized commits data. diff --git a/rhodecode/model/pull_request.py b/rhodecode/model/pull_request.py --- a/rhodecode/model/pull_request.py +++ b/rhodecode/model/pull_request.py @@ -167,6 +167,8 @@ def get_diff_info( author=commit.author, date=commit.date, message=commit.message, + commit_id=commit.raw_id, + raw_id=commit.raw_id ) commits.append(serialized_commit) user = User.get_from_cs_author(serialized_commit['author']) diff --git a/rhodecode/templates/pullrequests/pullrequest.mako b/rhodecode/templates/pullrequests/pullrequest.mako --- a/rhodecode/templates/pullrequests/pullrequest.mako +++ b/rhodecode/templates/pullrequests/pullrequest.mako @@ -303,7 +303,7 @@ var originalOption = data.element; return prefix + escapeMarkup(data.text); - };formatSelection: + }; // custom code mirror var codeMirrorInstance = $('#pullrequest_desc').get(0).MarkupForm.cm; @@ -362,8 +362,10 @@ var msg = ''.format(commonAncestorId); msg += '' + $.each(commitElements, function(idx, value) { - msg += ''.format(value["raw_id"]); + var commit_id = value["commit_id"] + msg += ''.format(commit_id); }); msg += ''