From 5642340970fc92351b12673e61ccefd5a5074e95 Mon Sep 17 00:00:00 2001 From: jgart Date: Wed, 9 Sep 2026 02:31:46 +0200 Subject: [PATCH] skip timesheet selection when only one is active --- src/Command/StopCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/StopCommand.php b/src/Command/StopCommand.php index dd1c172..090f2b8 100644 --- a/src/Command/StopCommand.php +++ b/src/Command/StopCommand.php @@ -50,7 +50,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $stopIds = []; - if (false !== $input->getOption('all')) { + if (false !== $input->getOption('all') || \count($running) === 1) { foreach ($running as $timesheet) { $stopIds[] = $timesheet->getId(); }