Skip to content

Commit

Permalink
Update ShowMy.php
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Sep 21, 2024
1 parent 45d69b0 commit 1194c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Domain/Timesheets/Controllers/ShowMy.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function saveTimeSheet(array $postData): void
$ticketId = (int)$postData["ticketId"];
$kind = $postData["kindId"];

if($ticketId == 0){
if($ticketId == 0 && $hours > 0){
$this->tpl->setNotification("Task ID is required for new entries", "error", "save_timesheet");
return;
}
Expand Down

0 comments on commit 1194c8b

Please sign in to comment.