]> source.dussan.org Git - nextcloud-server.git/commitdiff
Insert id for unique user group share rows
authorMichael Gapczynski <mtgap@owncloud.com>
Sun, 9 Sep 2012 03:09:45 +0000 (23:09 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Sun, 9 Sep 2012 03:09:58 +0000 (23:09 -0400)
lib/public/share.php

index 87144735a6836465e9c6c496e6e21e98d821b027..94644d0b657d1ac50c37624c0ff24657ffa70de9 100644 (file)
@@ -871,6 +871,7 @@ class Share {
                                // Insert an extra row for the group share if the item or file target is unique for this user
                                if ($itemTarget != $groupItemTarget || (isset($fileSource) && $fileTarget != $groupFileTarget)) {
                                        $query->execute(array($itemType, $itemSource, $itemTarget, $parent, self::$shareTypeGroupUserUnique, $uid, $uidOwner, $permissions, time(), $fileSource, $fileTarget));
+                                       \OC_DB::insertid('*PREFIX*share');
                                }
                        }
                        if ($parentFolder === true) {