Import and export the privacy field in CSV data (Request #9139).
authorJan Schneider <jan@horde.org>
Tue, 27 Jul 2010 17:54:16 +0000 (19:54 +0200)
committerJan Schneider <jan@horde.org>
Tue, 27 Jul 2010 17:54:16 +0000 (19:54 +0200)
kronolith/data.php
kronolith/docs/CHANGES
kronolith/lib/Event.php

index dd28ed0..0a773a1 100644 (file)
@@ -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);
index a63839a..a07e6d5 100644 (file)
@@ -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).
index b2d932d..74b17ab 100644 (file)
@@ -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'])) {