Just tried, issue remains. The error is saying that you cannot convert a function to JSON.
The stack trace shows that the tree object contains a function when it’s passed to the encodeMenuAsJSON function, so the $.toJSON(tree); statement throws an error.
If you do a console.log(tree); inside the encodeMenuAsJSON, you’ll see that the tree object has a color_presets object containing a function called remove.
In the readMenuTreeState function definition, line 1692, if you comment out the color presets attribute, the save button works fine.
return {
tree: tree,
//color_presets: $.extend(true, {}, colorPresets),
granted_capabilities: AmeCapabilityManager.getGrantedCapabilities()
};
This should give a hint on how to solve the issue.
Just realized that even after deleting the options using the provided checkbox, the “new user” menu item is still hidden from other users. This fix is now urgent man.