Fix sharing issue with collection and children mismatches

This commit is contained in:
Michael Gapczynski 2013-01-19 01:50:02 -05:00
parent a17ca3a69a
commit 316eef3ded

View file

@ -681,7 +681,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