summaryrefslogtreecommitdiffstats
path: root/core/js/shareitemmodel.js
diff options
context:
space:
mode:
authorIndividual IT Services <info@individual-it.net>2015-09-21 17:01:50 +0545
committerIndividual IT Services <info@individual-it.net>2015-09-21 17:01:50 +0545
commit976942bb61e2c758b91de52c23925cb03e3a4cbd (patch)
treee7754ebfa8547b97e297e49a7008cb2f86fc3d84 /core/js/shareitemmodel.js
parentc433d48d8e4b6dd1392a25170dff173852544fcf (diff)
downloadnextcloud-server-976942bb61e2c758b91de52c23925cb03e3a4cbd.tar.gz
nextcloud-server-976942bb61e2c758b91de52c23925cb03e3a4cbd.zip
re initialize OC.Share.currentShares OC.Share.itemShares
otherwise old values are kept. fix for #19164
Diffstat (limited to 'core/js/shareitemmodel.js')
-rw-r--r--core/js/shareitemmodel.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/js/shareitemmodel.js b/core/js/shareitemmodel.js
index ff0d3a6d800..3ed10afd149 100644
--- a/core/js/shareitemmodel.js
+++ b/core/js/shareitemmodel.js
@@ -618,6 +618,8 @@
var fileId = this.fileInfoModel.get('id');
if (!shares || !shares.length) {
delete OC.Share.statuses[fileId];
+ OC.Share.currentShares = {};
+ OC.Share.itemShares = [];
return;
}