Show More
@@ -812,12 +812,16 b' class RepoPullRequestsView(RepoAppView, ' | |||||
812 | Session().commit() |
|
812 | Session().commit() | |
813 | h.flash(_('Successfully opened new pull request'), |
|
813 | h.flash(_('Successfully opened new pull request'), | |
814 | category='success') |
|
814 | category='success') | |
815 |
except Exception |
|
815 | except Exception: | |
816 | msg = _('Error occurred during creation of this pull request.') |
|
816 | msg = _('Error occurred during creation of this pull request.') | |
817 | log.exception(msg) |
|
817 | log.exception(msg) | |
818 | h.flash(msg, category='error') |
|
818 | h.flash(msg, category='error') | |
|
819 | ||||
|
820 | # copy the args back to redirect | |||
|
821 | org_query = self.request.GET.mixed() | |||
819 | raise HTTPFound( |
|
822 | raise HTTPFound( | |
820 |
h.route_path('pullrequest_new', repo_name=self.db_repo_name |
|
823 | h.route_path('pullrequest_new', repo_name=self.db_repo_name, | |
|
824 | _query=org_query)) | |||
821 |
|
825 | |||
822 | raise HTTPFound( |
|
826 | raise HTTPFound( | |
823 | h.route_path('pullrequest_show', repo_name=target_repo, |
|
827 | h.route_path('pullrequest_show', repo_name=target_repo, |
@@ -22,7 +22,7 b'' | |||||
22 | ${self.repo_page_title(c.rhodecode_db_repo)} |
|
22 | ${self.repo_page_title(c.rhodecode_db_repo)} | |
23 | </div> |
|
23 | </div> | |
24 |
|
24 | |||
25 | ${h.secure_form(h.route_path('pullrequest_create', repo_name=c.repo_name), id='pull_request_form', method='POST', request=request)} |
|
25 | ${h.secure_form(h.route_path('pullrequest_create', repo_name=c.repo_name, _query=request.GET.mixed()), id='pull_request_form', method='POST', request=request)} | |
26 |
|
26 | |||
27 | ${self.breadcrumbs()} |
|
27 | ${self.breadcrumbs()} | |
28 |
|
28 |
General Comments 0
You need to be logged in to leave comments.
Login now