Allow autocommit workflows to do apply (save & re-edit).
This commit is contained in:
parent
2dc0cc3937
commit
7a3213b373
2 changed files with 5 additions and 1 deletions
|
|
@ -2768,6 +2768,9 @@ sub www_editSave {
|
|||
# we handle auto commit assets here in case they didn't handle it themselves
|
||||
if ($object->getAutoCommitWorkflowId) {
|
||||
$object->requestAutoCommit;
|
||||
#Since the version tag makes new objects, fetch a fresh one here.
|
||||
#Note, this workaround can still fail, if WebGUI hands off back to spectre.
|
||||
$object = WebGUI::Asset->new($session, $object->getId, $object->get('className'));
|
||||
}
|
||||
# else, try to to auto commit
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue