Commit ebce78b6 authored by Uma's avatar Uma
Browse files

Merge branch 'max_scheduled_workflows' into 'master'

Max scheduled workflow limit configured as Globals

See merge request !738
parents 22a2da38 a1288c9b
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -175,8 +175,5 @@ if(isset($default_timezone) && function_exists('date_default_timezone_set')) {
//Set the default layout 
$default_layout = 'v7';

//Maximiun scheduled workflows default value set to 10
$max_scheduled_workflows = 10;

include_once 'config.security.php';
?>
+2 −2
Original line number Diff line number Diff line
@@ -111,8 +111,8 @@ class VTWorkflowManager{
	 * @return int
	 */
	function getMaxAllowedScheduledWorkflows() {
        global $max_scheduled_workflows;
		return $max_scheduled_workflows;
            vglobal('max_scheduled_workflows', 10);
            return vglobal('max_scheduled_workflows');
	}

	function getWorkflowsForModule($moduleName){