Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Use remoteId as RemoteShare id.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Feb 23, 2016
1 parent a5f13e1 commit 9ab0511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/core.ocs/src/Model/SQLStore.php
Expand Up @@ -98,10 +98,10 @@ public function storeRemoteShare(RemoteShare $remoteShare)
{
$id = $remoteShare->getId();
if(empty($id)){
$id = $remoteShare->getOcsToken()."###".$remoteShare->getUser();
$id = $remoteShare->getOcsRemoteId();
$remoteShare->setId($id);
}
$this->storage->simpleStoreSet(OCS_SQLSTORE_NS_REMOTE_SHARE, $id, $remoteShare, OCS_SQLSTORE_FORMAT, $remoteShare->getUser());
$remoteShare->setId($id);
return $remoteShare;

}
Expand Down

0 comments on commit 9ab0511

Please sign in to comment.