diff --git a/resources/views/time_tracker.blade.php b/resources/views/time_tracker.blade.php index 628ffc01a6..43ce30ee75 100644 --- a/resources/views/time_tracker.blade.php +++ b/resources/views/time_tracker.blade.php @@ -136,7 +136,9 @@
- +| @@ -595,6 +597,9 @@ var projectId = $('input[name=project_id]').val(); var client = clientMap[clientId]; var project = projectMap[projectId]; + if (!clientId && (window.model && !model.selectedTask().client)) { + e.preventDefault();return; + } if (project && ((project.client && project.client.public_id == clientId) || !project.client)) { e.preventDefault();return; }