Commit 0ec290cb authored by Jérome Perrin's avatar Jérome Perrin

core: re-validate component after modify after transition

the "end of transaction" mode was not compatible with ERP5JS, because
form is re-rendered after edition in the same transaction.

Because this interaction can modify the workflow state and the source
code warnings/errors properties, we want this interaction to be executed
in the current transaction so that we can render the edited document
properly.

Also unset "once per transaction" for the case the same document is
edited more than once in the same transaction.
With this change, if that scenario of a document edited more than once
in a transaction really happen, then the source code of the document
will be checked multiple times.
parent 08bf6d94
......@@ -27,15 +27,15 @@
<item>
<key> <string>after_script_name</string> </key>
<value>
<tuple/>
<list>
<string>Component_checkSourceCodeAndValidateAfterModified</string>
</list>
</value>
</item>
<item>
<key> <string>before_commit_script_name</string> </key>
<value>
<list>
<string>Component_checkSourceCodeAndValidateAfterModified</string>
</list>
<tuple/>
</value>
</item>
<item>
......@@ -64,7 +64,7 @@
</item>
<item>
<key> <string>once_per_transaction</string> </key>
<value> <int>1</int> </value>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>portal_type_filter</string> </key>
......
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