Add filter for irregular task time_log shapes

This commit is contained in:
David Bomba 2025-08-24 19:30:14 +10:00
parent 38f2de7524
commit 0c7c23a662
1 changed files with 1 additions and 1 deletions

View File

@ -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([]);
}