fix_32765_v2.patch

Marius BALTEANU, 2020-04-05 11:07

Download (4.57 KB)

View differences:

app/helpers/application_helper.rb
1059 1059
                url = issue_url(issue, :only_path => only_path, :anchor => anchor)
1060 1060
                link =
1061 1061
                  if sep == '##'
1062
                    link_to("#{issue.tracker.name} ##{oid}#{comment_suffix}",
1062
                    link_to("#{issue.tracker.name} ##{oid}#{comment_suffix}: #{issue.subject}",
1063 1063
                            url,
1064 1064
                            :class => issue.css_classes,
1065
                            :title => "#{issue.tracker.name}: #{issue.subject.truncate(100)} (#{issue.status.name})") + ": #{issue.subject}"
1065
                            :title => "#{l(:field_status)}: #{issue.status.name}")
1066 1066
                  else
1067 1067
                    link_to("##{oid}#{comment_suffix}",
1068 1068
                            url,
test/helpers/application_helper_test.rb
310 310
                         :class => Issue.find(3).css_classes,
311 311
                         :title => 'Bug: Error 281 when updating a recipe (New)')
312 312
    ext_issue_link = link_to(
313
                         'Bug #3',
313
                         'Bug #3: Error 281 when updating a recipe',
314 314
                         {:controller => 'issues', :action => 'show', :id => 3},
315 315
                         :class => Issue.find(3).css_classes,
316
                         :title => 'Bug: Error 281 when updating a recipe (New)') +
317
                           ": Error 281 when updating a recipe"
316
                         :title => 'Status: New')
318 317
    note_link = link_to(
319 318
                         '#3-14',
320 319
                         {:controller => 'issues', :action => 'show',
......
322 321
                         :class => Issue.find(3).css_classes,
323 322
                         :title => 'Bug: Error 281 when updating a recipe (New)')
324 323
    ext_note_link = link_to(
325
                         'Bug #3-14',
324
                         'Bug #3-14: Error 281 when updating a recipe',
326 325
                         {:controller => 'issues', :action => 'show',
327 326
                          :id => 3, :anchor => 'note-14'},
328 327
                         :class => Issue.find(3).css_classes,
329
                         :title => 'Bug: Error 281 when updating a recipe (New)') +
330
                           ": Error 281 when updating a recipe"
328
                         :title => 'Status: New')
331 329
    note_link2 = link_to(
332 330
                         '#3#note-14',
333 331
                         {:controller => 'issues', :action => 'show',
......
335 333
                         :class => Issue.find(3).css_classes,
336 334
                         :title => 'Bug: Error 281 when updating a recipe (New)')
337 335
    ext_note_link2 = link_to(
338
                         'Bug #3#note-14',
336
                         'Bug #3#note-14: Error 281 when updating a recipe',
339 337
                         {:controller => 'issues', :action => 'show',
340 338
                          :id => 3, :anchor => 'note-14'},
341 339
                         :class => Issue.find(3).css_classes,
342
                         :title => 'Bug: Error 281 when updating a recipe (New)') +
343
                           ": Error 281 when updating a recipe"
340
                         :title => 'Status: New')
344 341

  
345 342
    revision_link = link_to(
346 343
                         'r1',
......
399 396
      # should not ignore leading zero
400 397
      '#03'                         => '#03',
401 398
      # tickets with more info
402
      '##3, [##3], (##3) and ##3.'      => "#{ext_issue_link}, [#{ext_issue_link}], (#{ext_issue_link}) and #{ext_issue_link}.",
403
      '##3-14'                       => ext_note_link,
404
      '##3#note-14'                  => ext_note_link2,
405
      '##03'                         => '##03',
399
      '##3, [##3], (##3) and ##3.'  => "#{ext_issue_link}, [#{ext_issue_link}], (#{ext_issue_link}) and #{ext_issue_link}.",
400
      '##3-14'                      => ext_note_link,
401
      '##3#note-14'                 => ext_note_link2,
402
      '##03'                        => '##03',
406 403
      # changesets
407 404
      'r1'                          => revision_link,
408 405
      'r1.'                         => "#{revision_link}.",