Subscribe to created task list.
authorJan Schneider <jan@horde.org>
Thu, 29 Jul 2010 09:26:16 +0000 (11:26 +0200)
committerJan Schneider <jan@horde.org>
Thu, 29 Jul 2010 09:26:16 +0000 (11:26 +0200)
kronolith/lib/Ajax/Application.php

index c7bca7e..ca42a16 100644 (file)
@@ -666,6 +666,9 @@ class Kronolith_Ajax_Application extends Horde_Core_Ajax_Application
                         return $result;
                     }
                     $tasklist = $tasklists[$tasklistId];
+                    $_SESSION['all_external_calendars']['tasks'][$tasklistId] = $tasklist->get('name');
+                    $GLOBALS['display_external_calendars'][] = 'tasks/' . $tasklistId;
+                    $GLOBALS['prefs']->setValue('display_external_cals', serialize($GLOBALS['display_external_calendars']));
                     Kronolith::readPermsForm($tasklist);
                     $result->perms = Kronolith::permissionToJson($tasklist->getPermission());
                 } catch (Exception $e) {