Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2020-01-23 08:48:56 +0300
committerdartcafe <github@dartcafe.de>2020-01-23 08:48:56 +0300
commitacbc11a1cb7e3d51435e63982d4bb52c5fca8c4b (patch)
tree09f28b2e3e36709486e482410cd2c95730754739
parent2a3799e730ef338cad48222f31202956d59cfd63 (diff)
fix create personal share for public userv1.1.3-RC
-rw-r--r--lib/Controller/ShareController.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Controller/ShareController.php b/lib/Controller/ShareController.php
index e24ac535..907a0578 100644
--- a/lib/Controller/ShareController.php
+++ b/lib/Controller/ShareController.php
@@ -199,12 +199,14 @@ class ShareController extends Controller {
$userShare->setType('external');
$userShare->setUserId($userName);
-
+ $newShare->setUser('');
} elseif ($userShare->getType() === 'public') {
$userShare->setType('external');
$userShare->setPollId(intval($userShare->getPollId()));
$userShare->setUserId($userName);
+ $userShare->setUserEmail('');
+ $userShare->setUser('');
$userShare->setToken(\OC::$server->getSecureRandom()->generate(
16,
ISecureRandom::CHAR_DIGITS .