Merge pull request #19220 from individual-it/fix_19164

re initialize OC.Share.currentShares OC.Share.itemShares
This commit is contained in:
Thomas Müller 2015-09-23 11:41:20 +02:00
commit 0c283dc020
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}