Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9948

Closed
Open
Created Jan 05, 2016 by Administrator@rootOwner

ActionView::Template::Error (undefined method `title' for nil:NilClass)

Created by: rujews

giltab:7.14.3 url :/gitlab/android/MyMoney/merge_requests

这个错误和merge request列表数据有关,有的会出现这个错误,有的不会。 我该怎么修复数据,进而修复这个问题?

the error log :

ActionView::Template::Error (undefined method `title' for nil:NilClass):
    42:        
    43:       %span
    44:         %i.fa.fa-clock-o
    45:         = merge_request.milestone.title
    46:     - if merge_request.tasks?
    47:       %span.task-status
    48:         = merge_request.task_status
  app/views/projects/merge_requests/_merge_request.html.haml:45:in `_app_views_projects_merge_requests__merge_request_html_haml___654517899785029668_69986447076400'
  app/views/projects/merge_requests/_merge_requests.html.haml:3:in `_app_views_projects_merge_requests__merge_requests_html_haml__3166995607600430249_69986443199900'
  app/views/projects/merge_requests/index.html.haml:14:in `_app_views_projects_merge_requests_index_html_haml__186508081203370897_69986441374200'
  app/controllers/projects/merge_requests_controller.rb:36:in `index'
Assignee
Assign to
Time tracking