Defect #26350

Don't display file download button while on repository directory entries

Added by Mischa The Evil over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:


Target version:3.4.1
Resolution:Fixed Affected version:3.4.0


As the subject states, the file download button is also displayed on repository directory entries. This obviously shouldn't be the case.
This issue has been introduced with r16672 for #26035.

I'll attach a small patch fixing the issue. I've included the addition of a test assertion (for Git) showcasing the issue. I am not sure what is the best place to test this properly, so I've left multiple of such assertions out of the other adapters.

The patch, against source:/trunk@16749, is produced using git format-patch which makes it apply-able using "patch -p1 < 0001-...".


  Redmine version                3.4.0.devel@r16749
  Ruby version                   2.3.3-p222 (2016-11-21) [x86_64-linux]
  Rails version                  4.2.8
  Environment                    production
  Database adapter               Mysql2
  Subversion                     1.8.8
  Git                            1.9.1
Redmine plugins:
  no plugin installed

0001-Don-t-display-download-button-for-dir-entries.patch Magnifier (1.57 KB) Mischa The Evil, 2017-07-05 03:43

Related issues

Related to Redmine - Feature #26035: More visually consistent download links Closed

Associated revisions

Revision 16762
Added by Jean-Philippe Lang over 5 years ago

Don't display download button for dir entries (#26350).

Patch by Mischa The Evil.


#1 Updated by Mischa The Evil over 5 years ago

  • Related to Feature #26035: More visually consistent download links added

#2 Updated by Jean-Philippe Lang over 5 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Fix committed, thanks.

Also available in: Atom PDF