mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #23125
[Bug 1298144] Re: When the folder is empty, the link to "Download as zip file" should not show
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.
--
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
References