Skip to content
Snippets Groups Projects
Commit 713a9a3e authored by Vinciane's avatar Vinciane
Browse files

TU Change control function create

parent 82689b27
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,8 @@ class NotificationScheduleController
if (($key == 'cmd' || $key == 'state') && !Validator::notEmpty()->validate($value)) {
$errors[] = $key.' is empty';
}
if ($key != 'cmd' && $key != 'state' && $key != 'description' && !Validator::intVal()->validate($value) && $value != '*') {
if ($key != 'cmd' && $key != 'state' && $key != 'description' && !preg_match('#^[0-9\/*][0-9]?[,\/-]?([0-9]?){2}#', $value) ) {
$errors[] = 'wrong format for '.$key;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment