Allow autocommit workflows to do apply (save & re-edit).

This commit is contained in:
Colin Kuskie 2009-08-12 17:35:36 +00:00
parent 2dc0cc3937
commit 7a3213b373
2 changed files with 5 additions and 1 deletions

View file

@ -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 {