Return calendar id when adding remote calendars.
authorJan Schneider <jan@horde.org>
Fri, 16 Apr 2010 15:06:19 +0000 (17:06 +0200)
committerJan Schneider <jan@horde.org>
Fri, 16 Apr 2010 15:06:19 +0000 (17:06 +0200)
kronolith/lib/Ajax/Application.php

index 89406c6..22314ea 100644 (file)
@@ -616,6 +616,7 @@ class Kronolith_Ajax_Application extends Horde_Ajax_Application_Base
                 $GLOBALS['notification']->push(sprintf(_("The calendar \"%s\" has been saved."), $calendar['name']), 'horde.success');
             } else {
                 $GLOBALS['notification']->push(sprintf(_("You have been subscribed to \"%s\" (%s)."), $calendar['name'], $calendar['url']), 'horde.success');
+                $result->calendar = $calendar['url'];
             }
             break;
         }