Commit 0b3b8505 authored by Arnold Hendriks's avatar Arnold Hendriks

Simply ignore publish actions in versioned-locked-editlive state, they...

Simply ignore publish actions in versioned-locked-editlive state, they shouldn't be reachable as publish isn't permitted in this case
parent b2c5975b
......@@ -756,7 +756,9 @@ PUBLIC OBJECTTYPE EditDocumentApp EXTEND TolliumScreenBase
SubmitApprovalRequestFromMetadata(work, fsobj, approval_metadata);
}
ELSE IF (savemode = "versioned-locked-editlive")
THROW NEW Exception("Cannot publish draft when already submitted for approval");
{
RETURN FALSE; //should not be reachable, unless someone manages to race it?
}
}
}
......@@ -902,8 +904,7 @@ PUBLIC OBJECTTYPE EditDocumentApp EXTEND TolliumScreenBase
}
ELSE IF (savemode = "versioned-locked-editlive")
{
this->RunSimpleScreen("info", GetTid("publisher:tolliumapps.editdocument.messageboxes.alreadysubmittedforapproval"));
RETURN;
RETURN; //should not be reachable, unless someone manages to race it?
}
ELSE
{
......
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