The logic to control the print of the link was all implemented on the view
layer. As the link to the parent folder is listed as another row on the files
list, the conditions for printing the link are: -there are two or more rows on
the list OR -theres only one row on the list, but it is not a link to the
parent folder.
With this solution subfolders are considered a content even if they are empty,
so the case of downloading the zip of a folder full of subfolders but all of
them empty is still posible.
** Changed in: mahara
Status: Confirmed => Fix Committed
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1298144
Title:
When the folder is empty, the link to "Download as zip file" should
not show
Status in Mahara ePortfolio:
Fix Committed
Bug description:
Version: master
The link to "Download folder content as a zip file" should not show if
the folder is empty
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1298144/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to : [email protected]
Unsubscribe : https://launchpad.net/~mahara-contributors
More help : https://help.launchpad.net/ListHelp