From 1cffe324f6356ebfa11635bceb699a190036869a Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Fri, 6 Dec 2024 03:13:19 +0100
Subject: [PATCH] erp5_json_editor: Always drop the default

  Like it is done for option, remove default from schema after append the value into decription.
---
 .../portal_skins/erp5_json_editor/json-editor.gadget.js.js     | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bt5/erp5_json_editor/SkinTemplateItem/portal_skins/erp5_json_editor/json-editor.gadget.js.js b/bt5/erp5_json_editor/SkinTemplateItem/portal_skins/erp5_json_editor/json-editor.gadget.js.js
index 7030ac8355..03410f107e 100644
--- a/bt5/erp5_json_editor/SkinTemplateItem/portal_skins/erp5_json_editor/json-editor.gadget.js.js
+++ b/bt5/erp5_json_editor/SkinTemplateItem/portal_skins/erp5_json_editor/json-editor.gadget.js.js
@@ -69,6 +69,9 @@
         schema.description = " (default: " + schema.default + ")";
       }
     }
+    if (schema.default !== undefined) {
+      delete schema.default;
+    }
     return schema;
   };
 
-- 
2.30.9