gitlab-org--gitlab-foss/app/views/search/results
Stan Hu 4949f40ac4 Fix Error 500 when doing a search in dashboard before visiting any project
If a search turned up an issue, under certain conditions you would see this error:

```
ActionView::Template::Error (undefined method `path_with_namespace' for nil:NilClass):
     6:   - if issue.description.present?
     7:     .description.term
     8:       = preserve do
     9:         = search_md_sanitize(markdown(issue.description))
    10:   %span.light
    11:     #{issue.project.name_with_namespace}
    12:   - if issue.closed?
  lib/gitlab/markdown/upload_link_filter.rb:36:in `build_url'
  lib/gitlab/markdown/upload_link_filter.rb:31:in `process_link_attr'
  lib/gitlab/markdown/upload_link_filter.rb:18:in `block in call'
  lib/gitlab/markdown/upload_link_filter.rb:17:in `call'
  lib/gitlab/markdown.rb:127:in `gfm'
  lib/gitlab/markdown.rb:24:in `render'
  app/helpers/gitlab_markdown_helper.rb:61:in `markdown'
  app/views/search/results/_issue.html.haml:9:in `block in _app_views_search_results__issue_html_haml__4127460390996300432_59973760'
  app/views/search/results/_issue.html.haml:8:in `_app_views_search_results__issue_html_haml__4127460390996300432_59973760'
  app/views/search/_results.html.haml:20:in `_app_views_search__results_html_haml__589475855773452465_61761440'
  app/views/search/show.html.haml:5:in `_app_views_search_show_html_haml___1852335078065998536_69780120'
```
2015-12-22 11:13:09 -08:00
..
_blob.html.haml Remove user_color_scheme_class 2015-08-25 15:32:38 -07:00
_commit.html.haml Fix code that depends on incorrect inflector behavior 2015-11-03 12:00:27 +01:00
_empty.html.haml Continue refactoring and restyle of search layout 2015-04-28 22:04:19 +03:00
_issue.html.haml Fix Error 500 when doing a search in dashboard before visiting any project 2015-12-22 11:13:09 -08:00
_merge_request.html.haml Revert merge request states renaming 2015-06-19 17:09:50 +02:00
_milestone.html.haml Ability to search milestones 2015-08-24 13:59:01 +03:00
_note.html.haml
_snippet_blob.html.haml Make snippet_blob highlight server-side as well 2015-08-26 11:43:25 -07:00
_snippet_title.html.haml
_wiki_blob.html.haml Remove user_color_scheme_class 2015-08-25 15:32:38 -07:00