diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-06-29 14:16:53 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-07-05 12:27:30 +0300 |
commit | 969d64fcb486ec4a98e19297621a439ec5ae1816 (patch) | |
tree | 736e96a3e39ec7eb871b3c32d51d80930ebe0ced /app/views/shared | |
parent | 6b43e8e6367062c7c26c8aa2de4a435dd533b09b (diff) |
Board might not exist
Diffstat (limited to 'app/views/shared')
-rw-r--r-- | app/views/shared/issuable/_search_bar.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/shared/issuable/_search_bar.html.haml b/app/views/shared/issuable/_search_bar.html.haml index 7dd32175d2e..9ce7f6fe269 100644 --- a/app/views/shared/issuable/_search_bar.html.haml +++ b/app/views/shared/issuable/_search_bar.html.haml @@ -2,11 +2,11 @@ - board = local_assigns.fetch(:board, nil) - block_css_class = type != :boards_modal ? 'row-content-block second-block' : '' - full_path = @project.present? ? @project.full_path : @group.full_path -- user_can_admin_list = can?(current_user, :admin_list, board.parent) +- user_can_admin_list = board && can?(current_user, :admin_list, board.parent) .issues-filters .issues-details-filters.filtered-search-block{ class: block_css_class, "v-pre" => type == :boards_modal } - - if type == :boards && board + - if type == :boards #js-multiple-boards-switcher.inline.boards-switcher{ "v-cloak" => true } = render_if_exists "shared/boards/switcher", board: board = form_tag page_filter_path(without: [:assignee_id, :author_id, :milestone_title, :label_name, :search]), method: :get, class: 'filter-form js-filter-form' do |