mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-23 10:01:44 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
1873d77958
|
@ -1236,7 +1236,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Theme_Style {
|
|||
echo "<form class=\"form-inline\" action=\"../out/out.RunSubWorkflow.php\" method=\"get\"><input type=\"hidden\" name=\"documentid\" value=\"".$latestContent->getDocument()->getId()."\" /><input type=\"hidden\" name=\"version\" value=\"".$latestContent->getVersion()."\" />";
|
||||
echo "<select name=\"subworkflow\" class=\"form-control\">";
|
||||
foreach($subworkflows as $subworkflow) {
|
||||
echo "<option value=\"".$subworkflow->getID()."\">".$subworkflow->getName()."</option>";
|
||||
echo "<option value=\"".$subworkflow->getID()."\">".htmlspecialchars($subworkflow->getName())."</option>";
|
||||
}
|
||||
echo "</select>";
|
||||
echo "<label class=\"inline\">";
|
||||
|
@ -1255,7 +1255,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Theme_Style {
|
|||
* parent workflow
|
||||
*/
|
||||
if($latestContent->getWorkflowState()->getID() == $state->getID()) {
|
||||
echo "Switching from sub workflow '".$workflow->getName()."' into state ".$state->getName()." of parent workflow '".$parentworkflow->getName()."' is possible<br />";
|
||||
echo "Switching from sub workflow '".htmlspecialchars($workflow->getName())."' into state ".$state->getName()." of parent workflow '".htmlspecialchars($parentworkflow->getName())."' is possible<br />";
|
||||
/* Check if the transition from the state where the sub workflow
|
||||
* starts into the current state is also allowed in the parent
|
||||
* workflow. Checking at this point is actually too late, because
|
||||
|
|
Loading…
Reference in New Issue
Block a user