Merge pull request #22217 from owncloud/fix_22215
Federates shares have to set a file_target
This commit is contained in:
commit
bfa404b441
|
@ -194,6 +194,12 @@ class FederatedShareProvider implements IShareProvider {
|
||||||
->setValue('token', $qb->createNamedParameter($token))
|
->setValue('token', $qb->createNamedParameter($token))
|
||||||
->setValue('stime', $qb->createNamedParameter(time()));
|
->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();
|
$qb->execute();
|
||||||
$id = $qb->getLastInsertId();
|
$id = $qb->getLastInsertId();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue