From eb6d40e5575cfc5ff525adcd4596c1bcfe8204ff Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 27 Jul 2010 19:54:16 +0200 Subject: [PATCH] Import and export the privacy field in CSV data (Request #9139). --- kronolith/data.php | 1 + kronolith/docs/CHANGES | 1 + kronolith/lib/Event.php | 3 +++ 3 files changed, 5 insertions(+) diff --git a/kronolith/data.php b/kronolith/data.php index dd28ed04d..0a773a1c6 100644 --- a/kronolith/data.php +++ b/kronolith/data.php @@ -127,6 +127,7 @@ case 'export': $row['title'] = $event->getTitle(); $row['location'] = $event->location; $row['description'] = $event->description; + $row['private'] = (int)$event->private; $row['start_date'] = sprintf('%d-%02d-%02d', $event->start->year, $event->start->month, $event->start->mday); $row['start_time'] = sprintf('%02d:%02d:%02d', $event->start->hour, $event->start->min, $event->start->sec); $row['end_date'] = sprintf('%d-%02d-%02d', $event->end->year, $event->end->month, $event->end->mday); diff --git a/kronolith/docs/CHANGES b/kronolith/docs/CHANGES index a63839a19..a07e6d581 100644 --- a/kronolith/docs/CHANGES +++ b/kronolith/docs/CHANGES @@ -40,6 +40,7 @@ v3.0-git v2.3.5-cvs ---------- +[jan] Import and export the privacy field in CSV data (Request #9139). [mjr] Send an iTip REQUEST, not ADD, when updating an existing event (Bug #9131). [jan] Fix all-day events sometimes showing up an day early too (Bug #9012). diff --git a/kronolith/lib/Event.php b/kronolith/lib/Event.php index b2d932de7..74b17aba4 100644 --- a/kronolith/lib/Event.php +++ b/kronolith/lib/Event.php @@ -1395,6 +1395,9 @@ abstract class Kronolith_Event if (!empty($hash['location'])) { $this->location = $hash['location']; } + if (!empty($hash['private'])) { + $this->private = true; + } if (!empty($hash['start_date'])) { $date = explode('-', $hash['start_date']); if (empty($hash['start_time'])) { -- 2.11.0