diff --git a/core/js/share.js b/core/js/share.js
index 467a0e4d954..991e307e5ca 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -73,7 +73,6 @@ OC.Share={
},
showDropDown:function(itemType, item, appendTo, privateLink, possiblePermissions) {
var html = '
';
- // TODO replace with autocomplete textbox
html += '
';
html += '
';
@@ -86,6 +85,8 @@ OC.Share={
}
html += '
';
$(html).appendTo(appendTo);
+ // Reset item shares
+ OC.Share.itemShares = [];
var data = OC.Share.loadItem(itemType, item);
if (data) {
$.each(data, function(index, share) {