weitere perfektionierung der neuen mobile app
This commit is contained in:
@@ -125,7 +125,7 @@ class TaskController extends Controller
|
||||
|
||||
$task->update($payload);
|
||||
|
||||
$task->load(['taskCollection', 'assignedEvents']);
|
||||
$task->load(['taskCollection', 'assignedEvents', 'eventType', 'emotion']);
|
||||
|
||||
return response()->json([
|
||||
'message' => 'Task erfolgreich aktualisiert.',
|
||||
@@ -357,6 +357,10 @@ class TaskController extends Controller
|
||||
$data['priority'] = $original?->priority ?? 'medium';
|
||||
}
|
||||
|
||||
if (array_key_exists('emotion_id', $data) && empty($data['emotion_id'])) {
|
||||
$data['emotion_id'] = null;
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user