ProcessMaker-BE "Calendar cambios"
- El atributo STATUS ya no es requerido - Se modificaron el formato de respuesta de las fechas, esto segun "ADMIN > Settings > Environment > Global Date Format" - Se cambiaron el formato de los dias a: 1, 2, 3, 4, 5, 6, 7, 0 (0 es el valor que indica todos los dias) - Se hizo los cambios necesarios en el archivo PHPUnit implicado
This commit is contained in:
@@ -205,7 +205,7 @@ class Process
|
||||
}
|
||||
|
||||
//defaultValues
|
||||
if (count($arrayFieldDefinition[$fieldName]["defaultValues"]) > 0 && !in_array($fieldValue, $arrayFieldDefinition[$fieldName]["defaultValues"])) {
|
||||
if (count($arrayFieldDefinition[$fieldName]["defaultValues"]) > 0 && !in_array($fieldValue, $arrayFieldDefinition[$fieldName]["defaultValues"], true)) {
|
||||
throw (new \Exception(str_replace(array("{0}", "{1}"), array($fieldNameAux, implode("|", $arrayFieldDefinition[$fieldName]["defaultValues"])), "Invalid value for \"{0}\", it only accepts values: \"{1}\".")));
|
||||
}
|
||||
|
||||
@@ -276,7 +276,7 @@ class Process
|
||||
}
|
||||
|
||||
foreach ($arrayAux as $value) {
|
||||
if (!in_array($value, $arrayFieldDefinition[$fieldName]["defaultValues"])) {
|
||||
if (!in_array($value, $arrayFieldDefinition[$fieldName]["defaultValues"], true)) {
|
||||
throw (new \Exception(str_replace(array("{0}", "{1}"), array($fieldNameAux, implode("|", $arrayFieldDefinition[$fieldName]["defaultValues"])), "Invalid value for \"{0}\", it only accepts values: \"{1}\".")));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user