From 3a731a01b1742f22b67eda6bc2a643462a9ae40d Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 31 Mar 2014 15:02:02 +0200 Subject: [PATCH] select statement always need to contain file_source respectively item_source --- lib/private/share/share.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/share/share.php b/lib/private/share/share.php index 8238797600..7bab98b00b 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)) {