undefined local variable or method `diff'
Created by: miramir
gitlab. branch 7-3-stable
if commit contains change file mode, i see:
Completed 500 Internal Server Error in 140ms
ActionView::Template::Error (undefined local variable or method `diff' for #<#<Class:0x000000069f19c8>:0x000000069eb208>):
12: - else
13: %span= diff_file.new_path
14: - if diff_file.mode_changed?
15: %span.file-mode= "#{diff.a_mode} → #{diff.b_mode}"
16:
17: .diff-btn-group
18: - unless params[:view] == 'parallel'
app/views/projects/diffs/_file.html.haml:15:in `_app_views_projects_diffs__file_html_haml___2988957381403240991_52544900'
app/views/projects/diffs/_diffs.html.haml:20:in `block in _app_views_projects_diffs__diffs_html_haml___1957141445595236262_50869140'
app/views/projects/diffs/_diffs.html.haml:19:in `each'
app/views/projects/diffs/_diffs.html.haml:19:in `each_with_index'
app/views/projects/diffs/_diffs.html.haml:19:in `_app_views_projects_diffs__diffs_html_haml___1957141445595236262_50869140'
app/views/projects/compare/show.html.haml:21:in `_app_views_projects_compare_show_html_haml___4588362990256595728_55528080'