re initialize OC.Share.currentShares OC.Share.itemShares

otherwise old values are kept.
fix for #19164
This commit is contained in:
Individual IT Services 2015-09-21 17:01:50 +05:45
parent c433d48d8e
commit 976942bb61
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;
}