summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2014-03-31 21:34:42 +0200
committerBjörn Schießle <schiessle@owncloud.com>2014-03-31 21:34:42 +0200
commit0ca80254ec1039011efabbcfe5d8a189d5c0a619 (patch)
treeb5a4e3a07640676d47a19b873b53e9896cd7c7de
parentab696edba685cd6d2a64c2e48907f03197aae53f (diff)
parent3a731a01b1742f22b67eda6bc2a643462a9ae40d (diff)
downloadnextcloud-server-0ca80254ec1039011efabbcfe5d8a189d5c0a619.tar.gz
nextcloud-server-0ca80254ec1039011efabbcfe5d8a189d5c0a619.zip
Merge pull request #7967 from owncloud/sharing_fix_select_statement
select statement always need to contain file_source respectively item_source
-rw-r--r--lib/private/share/share.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index 8238797600e..7bab98b00bf 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -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)) {