73 hotfix2 - max_scheduled_workflows can never exceed 10
the $max_scheduled_workflows variable has been added to config.inc.php and set to 20
Once you have added 10 scheduled workflows, you cannot crate anymore as it says the limit is 10.
This is because in the function getMaxScheduledWorkflows() the vglobal() function is called:
vglobal('max_scheduled_workflows',10); // This sets the value to 10. return vglobal('max_scheduled_workflows'); //This returns the value current value of max_scheduled_workflows - which was just set to 10.
The vglobal function is being used as both an accessor function AND a setter function. If vglobal behaved like other frameworks global variable accessor functions then passing it a value of 10, vglobal('max_scheduled_workflows',10); would return a value of 10 ONLY if the variable has not been set to another value. Global variables should not be being set/changed inside the code. They should be set by values in the config file, with a default if no values are specified there.