Problem beim CSV Import behoben wodurch der Import ohne

Projekt-Zuordnung nicht möglich war
This commit is contained in:
Andreas Österreicher
2023-02-07 09:01:29 +01:00
parent b17c6e29e5
commit de5b701532
+6 -3
View File
@@ -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!');
}
}
}