diff --git a/apps/files_sharing/js/settings-admin.js b/apps/files_sharing/js/settings-admin.js index fa9b236ea98..e22aa4b0c36 100644 --- a/apps/files_sharing/js/settings-admin.js +++ b/apps/files_sharing/js/settings-admin.js @@ -7,7 +7,7 @@ $(document).ready(function() { ).done(function( result ) { $( '#mailTemplateSettings textarea' ).val(result); }).fail(function( result ) { - OC.dialogs.alert(result.message, t('files_sharing', 'Could not load template')); + OC.dialogs.alert(result.responseJSON.message, t('files_sharing', 'Could not load template')); }); };