From 23025093b7a1ecbf4c0f07ab9d0bd7c2c20bcac4 Mon Sep 17 00:00:00 2001 From: Konrad Kreitmair Date: Fri, 23 Aug 2024 10:14:28 +0200 Subject: [PATCH] [fix] Fix object and config menu not opening in Device config editor #910 This addresses the problem, that the drop-down for Configuration Menu and Object Properties are not shown anymore in the device config editor, if a configuration section is saved, which has in its JSON schema definition a property with type array and should have unique items. The cause of the problem is a call to super, when there is no super. This commit will fix this issue by removing the call to super, because it is not needed in this special case neither in all other cases. Fixes #910 Signed-off-by: Konrad Kreitmair --- openwisp_controller/config/static/config/js/widget.js | 1 - 1 file changed, 1 deletion(-) diff --git a/openwisp_controller/config/static/config/js/widget.js b/openwisp_controller/config/static/config/js/widget.js index 528e18264..65a92e3bd 100644 --- a/openwisp_controller/config/static/config/js/widget.js +++ b/openwisp_controller/config/static/config/js/widget.js @@ -984,7 +984,6 @@ JSONEditor.defaults.editors.multiselect.prototype.disable = function () { // Modified code begins if (this.select2) { this.select2.disabled = true; - this._super(); // Modified code ends } };