From 509d1d70d0580e26a4467e123c06d2c8939f32cc Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Wed, 14 Nov 2018 17:52:45 +0000 Subject: [PATCH] Fixed importing clients without projects in new import. --- WEB-INF/lib/ttOrgImportHelper.class.php | 8 +++++--- WEB-INF/templates/footer.tpl | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/WEB-INF/lib/ttOrgImportHelper.class.php b/WEB-INF/lib/ttOrgImportHelper.class.php index 73f1f09e..77458cfa 100644 --- a/WEB-INF/lib/ttOrgImportHelper.class.php +++ b/WEB-INF/lib/ttOrgImportHelper.class.php @@ -229,9 +229,11 @@ class ttOrgImportHelper { // We get here when processing tags for the current group. // Prepare a list of project ids. - $projects = explode(',', $attrs['PROJECTS']); - foreach ($projects as $id) - $mapped_projects[] = $this->currentGroupProjectMap[$id]; + if ($attrs['PROJECTS']) { + $projects = explode(',', $attrs['PROJECTS']); + foreach ($projects as $id) + $mapped_projects[] = $this->currentGroupProjectMap[$id]; + } $client_id = ttClientHelper::insert(array( 'group_id' => $this->current_group_id, diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index e6132be1..16196a60 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.12.4423 | Copyright © Anuko | +  Anuko Time Tracker 1.18.12.4424 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} -- 2.20.1