Fix a bug on the article page with a misleading downloads metric#4599
Conversation
StephDriver
left a comment
There was a problem hiding this comment.
@joemull
What was the expected behaviour for when there are views, but no downloads?
because this is what I'm seeing:

but I thought from the issue, that the downloads part of that would be hidden, so it would just show the views.
It should only hide the Downloads if there are no downloable galleys. |
the reasoning given in the original issue is:
So this does seem to apply to cases of nothing yet having been downloaded, so where there are views, but no downloads. However that is a very niche case, as any article with downloads avaliable and that has been viewed, is unlikely to remain on zero for long outside of a development environment! Ok, instead of borrowing trouble, lets go with this and we can always come back later for the other if it does become a user issue. |

Fixes #4299.