Add filter for irregular task time_log shapes
This commit is contained in:
parent
38f2de7524
commit
0c7c23a662
|
|
@ -133,7 +133,7 @@ class StoreTaskRequest extends Request
|
|||
}
|
||||
}
|
||||
|
||||
if (!isset($input['time_log']) || empty($input['time_log']) || $input['time_log'] == '{}') {
|
||||
if (!isset($input['time_log']) || empty($input['time_log']) || $input['time_log'] == '{}' || $input['time_log'] == '[""]') {
|
||||
$input['time_log'] = json_encode([]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue