diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-02-04 11:52:20 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-02-04 11:52:20 -0800 |
commit | 3b8c071df4654c1b3f999af94163f14c0cd64733 (patch) | |
tree | b893d24051bb2633942ee6cf5064273c3d848a1e /lib/public/share.php | |
parent | a7e62b03666dc7395ffea9c0e794ee4ab69fde97 (diff) | |
parent | 316eef3ded233c53ccb1f40aa339372ed9c644d9 (diff) | |
download | nextcloud-server-3b8c071df4654c1b3f999af94163f14c0cd64733.tar.gz nextcloud-server-3b8c071df4654c1b3f999af94163f14c0cd64733.zip |
Merge pull request #1234 from owncloud/fix-issue-192
Fix sharing issue with collection and children mismatches
Diffstat (limited to 'lib/public/share.php')
-rw-r--r-- | lib/public/share.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/share.php b/lib/public/share.php index 3c5c2d53782..7d806fafd04 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -516,7 +516,8 @@ class Share { $collectionTypes[] = $type; } } - if (!self::getBackend($itemType) instanceof Share_Backend_Collection) { + // TODO Add option for collections to be collection of themselves, only 'folder' does it now... + if (!self::getBackend($itemType) instanceof Share_Backend_Collection || $itemType != 'folder') { unset($collectionTypes[0]); } // Return array if collections were found or the item type is a collection itself - collections can be inside collections |