diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js
index 58dd706fb1ff9222d92b3ea175a1199151e590dc..47471955563482f9ef39d1f26fcbde1d9d13ddb5 100644
--- a/core/js/sharedialogview.js
+++ b/core/js/sharedialogview.js
@@ -120,6 +120,8 @@
 				'_onSelectRecipient',
 				'onShareWithFieldChanged'
 			);
+
+			OC.Plugins.attach('OCA.Share.ShareDialogView', this);
 		},
 
 		onShareWithFieldChanged: function() {