##// END OF EJS Templates
pull-requests: in case of an error redirect to the same url as source....
marcink -
r2052:7fd6e6f2 default
parent child Browse files
Show More
@@ -812,12 +812,16 b' class RepoPullRequestsView(RepoAppView, '
812 812 Session().commit()
813 813 h.flash(_('Successfully opened new pull request'),
814 814 category='success')
815 except Exception as e:
815 except Exception:
816 816 msg = _('Error occurred during creation of this pull request.')
817 817 log.exception(msg)
818 818 h.flash(msg, category='error')
819
820 # copy the args back to redirect
821 org_query = self.request.GET.mixed()
819 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 826 raise HTTPFound(
823 827 h.route_path('pullrequest_show', repo_name=target_repo,
@@ -22,7 +22,7 b''
22 22 ${self.repo_page_title(c.rhodecode_db_repo)}
23 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 27 ${self.breadcrumbs()}
28 28
General Comments 0
You need to be logged in to leave comments. Login now