Merged in paulis/processmaker/PM-2780-PM (pull request #2308)

PM-2780:Add an option to select minutes to task timing control
This commit is contained in:
Julio Cesar Laura Avendaño
2015-06-08 13:37:45 -04:00
4 changed files with 9 additions and 3 deletions

View File

@@ -325,7 +325,7 @@ class Task
if (!isset($arrayProperty["TAS_DURATION"])) {
throw (new \Exception("Invalid value specified for 'tas_duration'"));
}
$valuesTimeUnit = array('DAYS','HOURS');
$valuesTimeUnit = array('DAYS','HOURS','MINUTES');
if ((!isset($arrayProperty["TAS_TIMEUNIT"])) ||
(!in_array($arrayProperty["TAS_TIMEUNIT"], $valuesTimeUnit))) {
throw (new \Exception("Invalid value specified for 'tas_timeunit'"));