aboutsummaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-05-07 11:23:50 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-05-19 01:38:47 +0200
commitab7ae004f7f5620b474ad506990cba56823c42b2 (patch)
treebea6fda77acf7cd6605d2552cddecaf61f6a2c3f /core/ajax
parenta7509e5fd98c05ea98d8b2e9f6b462ba1af51ca2 (diff)
downloadnextcloud-server-ab7ae004f7f5620b474ad506990cba56823c42b2.tar.gz
nextcloud-server-ab7ae004f7f5620b474ad506990cba56823c42b2.zip
Automatically copy the share expiration date when new shares are created
Fix #4823
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/share.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index 2b41bd8a5da..75b749a5b07 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -41,7 +41,8 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
$shareType,
$shareWith,
$_POST['permissions'],
- $_POST['itemSourceName']
+ $_POST['itemSourceName'],
+ (!empty($_POST['expirationDate']) ? new \DateTime($_POST['expirationDate']) : null)
);
if (is_string($token)) {