From de5b701532ffef42174fd0186aee66a3985c8c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Tue, 7 Feb 2023 09:01:29 +0100 Subject: [PATCH] =?UTF-8?q?Problem=20beim=20CSV=20Import=20behoben=20wodur?= =?UTF-8?q?ch=20der=20Import=20ohne=20Projekt-Zuordnung=20nicht=20m=C3=B6g?= =?UTF-8?q?lich=20war?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/zeitaufzeichnung_import.class.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/zeitaufzeichnung_import.class.php b/include/zeitaufzeichnung_import.class.php index 2b4913341..2d2109b2f 100644 --- a/include/zeitaufzeichnung_import.class.php +++ b/include/zeitaufzeichnung_import.class.php @@ -244,10 +244,13 @@ protected function checkPhaseBebuchbar($phase) */ protected function checkIfArbeitspaketZuWaehlen($projekt_kurzbz, $phase) { - $this->project->load($projekt_kurzbz); - if (!$this->project->zeitaufzeichnung && !$phase) + if ($projekt_kurzbz != '') { - throw new Exception($this->p->t("global/fehlerBeimSpeichernDerDaten") . ': Bitte ein Arbeitspaket wählen!'); + $this->project->load($projekt_kurzbz); + if (!$this->project->zeitaufzeichnung && !$phase) + { + throw new Exception($this->p->t("global/fehlerBeimSpeichernDerDaten") . ': Bitte ein Arbeitspaket wählen!'); + } } }