From c809db86f5a3ea20875e9963d8fe074ae45b49e1 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 16 Mar 2016 18:28:45 +0100 Subject: Not set expiration date is represented as 0 --- apps/files_sharing/js/sharedfilelist.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/files_sharing/js/sharedfilelist.js') diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js index 7b490b3d557..3446cb37a87 100644 --- a/apps/files_sharing/js/sharedfilelist.js +++ b/apps/files_sharing/js/sharedfilelist.js @@ -82,7 +82,10 @@ // add row with expiration date for link only shares - influenced by _createRow of filelist if (this._linksOnly) { - var expirationTimestamp = moment(fileData.shares[0].expiration).valueOf(); + var expirationTimestamp = 0; + if(fileData.shares[0].expiration !== null) { + expirationTimestamp = moment(fileData.shares[0].expiration).valueOf(); + } $tr.attr('data-expiration', expirationTimestamp); // date column (1000 milliseconds to seconds, 60 seconds, 60 minutes, 24 hours) -- cgit v1.2.3