<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Sidebyside: create an Event into a specific calendar</title> 
  <pubDate>Fri, 10 Apr 2026 06:14:15 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7785</link> 
  <atom:link rel="self" type="application/rss+xml" title="Sidebyside: create an Event into a specific calendar" href="https://bugs.horde.org/ticket/7785/rss" /> 
  <description>Sidebyside: create an Event into a specific calendar</description> 
 
   
   
  <item> 
   <title>Hello

When the preference &#039;side_by_side&#039; in active, from th</title> 
   <description>Hello

When the preference &#039;side_by_side&#039; in active, from the Day and Week view, the &#039;Create a New Event&#039; button always redirects to the default calendar (event when a distinct calendar is displayed).



If there is only one calendar displayed, it would be great if the new event dialog box could be initialized with this specific calendar.



This can be done by changing 2 files:

- lib/Views/Day.php 

- templates/Week/head.inc

by adding a test on side_by_side and count(_currentCalendars) and then add the &#039;calendar&#039; argument to the url.

Regards

Patrick</description> 
   <pubDate>Tue, 16 Dec 2008 13:53:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7785#t51291</link> 
  </item> 
   
  <item> 
   <title>Since you&#039;ve got it worked out, could you please upload a pa</title> 
   <description>Since you&#039;ve got it worked out, could you please upload a patch?</description> 
   <pubDate>Tue, 16 Dec 2008 14:47:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7785#t51293</link> 
  </item> 
   
  <item> 
   <title>&gt; Since you&#039;ve got it worked out, could you please upload a </title> 
   <description>&gt; Since you&#039;ve got it worked out, could you please upload a patch?



In lib/Views/Day.php, line 100 and line 276, I add the following code:



           if ($this-&gt;_sidebyside

           &amp;&amp;  count($this-&gt;_currentCalendars) == 1) {



               foreach( $this-&gt;_currentCalendars as $cid =&gt; $cal) {

                   if ($cid != Kronolith::getDefaultCalendar(PERMS_EDIT)) {

                      $newEventUrl = Util::addParameter($newEventUrl,

                                                        &#039;calendar&#039;, $cid);

                   }

               }

           }



In template/week/head.inc line 30, I add the following code:

if ( $this-&gt;_sidebyside

  &amp;&amp; count($this-&gt;_currentCalendars) == 1)

{

 foreach($this-&gt;_currentCalendars as $cid =&gt; $cal)

 {

   if ( $cid != Kronolith::getDefaultCalendar(PERMS_EDIT) )

   {

     $addurl = Util::addParameter($addurl, &#039;calendar&#039;, $cid);

   }

 }

}</description> 
   <pubDate>Tue, 16 Dec 2008 15:06:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7785#t51294</link> 
  </item> 
   
  <item> 
   <title>http://en.wikipedia.org/wiki/Diff</title> 
   <description>http://en.wikipedia.org/wiki/Diff</description> 
   <pubDate>Tue, 16 Dec 2008 15:08:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7785#t51295</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
