From 727fa489411cbeaaf1cf54e1d82afe7ca3bc5f9a Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Fri, 19 Jan 2018 13:13:38 +0100 Subject: [PATCH] pull-requests: allow opening PR from changelog based on selected refs for git as well as hg. --- rhodecode/templates/changelog/changelog.mako | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhodecode/templates/changelog/changelog.mako b/rhodecode/templates/changelog/changelog.mako index 8f61890d..fd5edc3f 100644 --- a/rhodecode/templates/changelog/changelog.mako +++ b/rhodecode/templates/changelog/changelog.mako @@ -157,7 +157,7 @@ var open_new_pull_request = $('#open_new_pull_request'); if(open_new_pull_request){ var selected_changes = selectedCheckboxes.length; - if (selected_changes > 1 || selected_changes == 1 && templateContext.repo_type != 'hg') { + if (selected_changes > 1 || selected_changes == 1 && templateContext.repo_type == 'svn') { open_new_pull_request.hide(); } else { if (selected_changes == 1) {