Commit fc9fb3c5 authored by Romain Courteaud's avatar Romain Courteaud

erp5_forge: ensure user set a changelog

parent 214fdbf3
......@@ -516,6 +516,10 @@
function getContentFromChangelogView(gadget) {
var result = JSON.parse(gadget.state.value);
result.changelog = gadget.element.querySelector('textarea').value;
// Ensure user set a changelog
if (result.changelog === gadget.state.default_changelog) {
result.changelog = '';
}
result.push = gadget.element.querySelector('input').checked;
gadget.state.value = JSON.stringify(result);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment