summaryrefslogtreecommitdiffstats
path: root/app/helpers/routes_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/routes_helper.rb')
-rw-r--r--app/helpers/routes_helper.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/helpers/routes_helper.rb b/app/helpers/routes_helper.rb
index 94c68c0a4..7c50bad1a 100644
--- a/app/helpers/routes_helper.rb
+++ b/app/helpers/routes_helper.rb
@@ -87,6 +87,16 @@ module RoutesHelper
end
end
+ # Returns the path to bulk update issues or to issue path
+ # if only one issue is selected for bulk update
+ def _bulk_update_issues_path(issue, *args)
+ if issue
+ issue_path(issue, *args)
+ else
+ bulk_update_issues_path(*args)
+ end
+ end
+
def board_path(board, *args)
project_board_path(board.project, board, *args)
end