From 41d6f05f88d45a21e9ddebd8ce4219269a140833 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 27 Jan 2016 16:20:51 +0100 Subject: [PATCH] choose mandatory workflow from list if more than 1 workflow is possible --- views/bootstrap/class.AddDocument.php | 23 +++++++++++++++------ views/bootstrap/class.UpdateDocument.php | 26 ++++++++++++++++++------ 2 files changed, 37 insertions(+), 12 deletions(-) diff --git a/views/bootstrap/class.AddDocument.php b/views/bootstrap/class.AddDocument.php index 425e1d071..f67251b98 100644 --- a/views/bootstrap/class.AddDocument.php +++ b/views/bootstrap/class.AddDocument.php @@ -232,12 +232,25 @@ $(document).ready(function() { getMandatoryWorkflow(); - if($mandatoryworkflow) { + $mandatoryworkflows = $user->getMandatoryWorkflows(); + if($mandatoryworkflows) { + if(count($mandatoryworkflows) == 1) { ?> - getName(); ?> - + getName()); ?> + + + + getName()); ?> + + +