Skip to content

Commit

Permalink
[FIX] formio: Form Builder save (JS event handler), fixes #66.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobslee committed Nov 19, 2020
1 parent 3ba4966 commit fe32f3a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion formio/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
'name': 'Form.io',
'summary': 'Build, deploy and store web forms with the "Form.io" Form Builder',
'version': '7.4',
'version': '7.5',
'license': 'LGPL-3',
'author': 'Nova Code',
'website': 'https://www.novacode.nl',
Expand Down
8 changes: 8 additions & 0 deletions formio/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,14 @@ <h4 class="oe_mb16 text-center">Download &amp; Install Available (Form.io GUI) V
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Releases</h2>
<h4 class="oe_mb16">7.5</h4>
<ul>
<li>
Fix Form Builder save (JavaScript event handler).<br/>
Use the event handler its argument (schema/components) instead of <code>self.schema</code> (scary change/bug)<br/>
Issue report: <code>https://github.com/novacode-nl/odoo-formio/issues/66</code>
</li>
</ul>
<h4 class="oe_mb16">7.4</h4>
<ul>
<li>
Expand Down
2 changes: 1 addition & 1 deletion formio/static/src/js/builder/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class App extends Component {
console.log('[Form.io] Saving Builder...');
$.jsonRpc.request(self.saveUrl, 'call', {
'builder_id': self.builderId,
'schema': self.schema
'schema': res
}).then(function() {
console.log('[Form.io] Builder sucessfully saved.');
});
Expand Down

0 comments on commit fe32f3a

Please sign in to comment.