Hi,
Version 9.11.8. When in xwiki.properties I set notifications.emails.enabled = false then I can’not Turn On/Off notifications in my profile. I get error:
HTTP Status 500 - org.apache.velocity.exception.MethodInvocationException: Invocation of method ‘saveNotificationPreferences’ in class org.xwiki.notifications.preferences.script.NotificationPreferenceScriptService threw exception org.xwiki.notifications.NotificationException: Failed to save preferences for notifications given as JSON. at 46:xwiki:XWiki.Notifications.Code.NotificationPreferenceService[line 25, column 36]
…
I check JSON and see that instead boolean true or false in email section strange value:
{“eventType”:“BlogPostPublishedEvent”,“format”:“alert”,“enabled”:false},
{“eventType”:“BlogPostPublishedEvent”,“format”:“email”,“enabled”:
{“length”:0,“prevObject”:{“length”:0,“prevObject”:{“0”:
{“jQuery222012375129411509441”:{“olddisplay”:“table-row”}},“context”:
{“jQuery222012375129411509441”:{“olddisplay”:“table-row”}},“length”:1},“context”:
{“jQuery222012375129411509441”:{“olddisplay”:“table-row”}},“selector”:".notificationTypeCell[data-format=“email”]"},“context”:
{“jQuery222012375129411509441”:{“olddisplay”:“table-row”}},“selector”:".notificationTypeCell[data-format=“email”] .notificationTypeCheckbox"}},
…