Merge pull request #22217 from owncloud/fix_22215

Federates shares have to set a file_target
This commit is contained in:
Thomas Müller 2016-02-09 09:10:17 +01:00
commit bfa404b441
1 changed files with 6 additions and 0 deletions

View File

@ -194,6 +194,12 @@ class FederatedShareProvider implements IShareProvider {
->setValue('token', $qb->createNamedParameter($token))
->setValue('stime', $qb->createNamedParameter(time()));
/*
* Added to fix https://github.com/owncloud/core/issues/22215
* Can be removed once we get rid of ajax/share.php
*/
$qb->setValue('file_target', $qb->createNamedParameter(''));
$qb->execute();
$id = $qb->getLastInsertId();