]> source.dussan.org Git - nextcloud-server.git/commitdiff
select statement always need to contain file_source respectively item_source
authorBjoern Schiessle <schiessle@owncloud.com>
Mon, 31 Mar 2014 13:02:02 +0000 (15:02 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Mon, 31 Mar 2014 13:03:35 +0000 (15:03 +0200)
lib/private/share/share.php

index 8238797600ead3b19868395dac53f4b42a45916b..7bab98b00bfc68fe5687965f3cee554ae5c073ca 100644 (file)
@@ -1523,9 +1523,9 @@ class Share extends \OC\Share\Constants {
                $select = '*';
                if ($format == self::FORMAT_STATUSES) {
                        if ($fileDependent) {
-                               $select = '`*PREFIX*share`.`id`, `*PREFIX*share`.`parent`, `share_type`, `path`, `share_with`, `uid_owner`';
+                               $select = '`*PREFIX*share`.`id`, `*PREFIX*share`.`parent`, `share_type`, `path`, `share_with`, `uid_owner` , `file_source`';
                        } else {
-                               $select = '`id`, `parent`, `share_type`, `share_with`, `uid_owner`';
+                               $select = '`id`, `parent`, `share_type`, `share_with`, `uid_owner`, `item_source`';
                        }
                } else {
                        if (isset($uidOwner)) {