diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-04-13 16:51:04 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-04-13 21:13:58 +0200 |
commit | 28e0d64edefb0156056d47e84de9a494f0236bea (patch) | |
tree | a2c7fb5155688d29d7bf939f1b50ca43239f7884 /apps/calendar/lib | |
parent | f9b7ed3a1f0e3671b0018ead4b303f60460f9ea8 (diff) | |
download | nextcloud-server-28e0d64edefb0156056d47e84de9a494f0236bea.tar.gz nextcloud-server-28e0d64edefb0156056d47e84de9a494f0236bea.zip |
Calendar: Fix saving of Categories in an event
Diffstat (limited to 'apps/calendar/lib')
-rw-r--r-- | apps/calendar/lib/object.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/calendar/lib/object.php b/apps/calendar/lib/object.php index 4d4421b5c4a..dbec61c67ec 100644 --- a/apps/calendar/lib/object.php +++ b/apps/calendar/lib/object.php @@ -436,10 +436,6 @@ class OC_Calendar_Object{ $errnum++; } - if(isset($request['categories']) && !is_array($request['categories'])){ - $errors['categories'] = $l10n->t('Not an array'); - } - $fromday = substr($request['from'], 0, 2); $frommonth = substr($request['from'], 3, 2); $fromyear = substr($request['from'], 6, 4); @@ -607,7 +603,7 @@ class OC_Calendar_Object{ { $title = $request["title"]; $location = $request["location"]; - $categories = isset($request["categories"]) ? $request["categories"] : array(); + $categories = $request["categories"]; $allday = isset($request["allday"]); $from = $request["from"]; $to = $request["to"]; @@ -781,7 +777,7 @@ class OC_Calendar_Object{ $vevent->setString('LOCATION', $location); $vevent->setString('DESCRIPTION', $description); - $vevent->setString('CATEGORIES', join(',', $categories)); + $vevent->setString('CATEGORIES', $categories); /*if($repeat == "true"){ $vevent->RRULE = $repeat; |