[Tickets #7785] Re: Sidebyside: create an Event into a specific calendar

bugs at horde.org bugs at horde.org
Tue Dec 16 15:06:35 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7785
------------------------------------------------------------------------------
  Ticket             | 7785
  Updated By         | patrick.abiven at apitech.fr
  Summary            | Sidebyside: create an Event into a specific calendar
  Queue              | Kronolith
  Version            | 2.3
  Type               | Enhancement
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


patrick.abiven at apitech.fr (2008-12-16 10:06) wrote:

> Since you'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->_sidebyside
            &&  count($this->_currentCalendars) == 1) {

                foreach( $this->_currentCalendars as $cid => $cal) {
                    if ($cid != Kronolith::getDefaultCalendar(PERMS_EDIT)) {
                       $newEventUrl = Util::addParameter($newEventUrl,
                                                         'calendar', $cid);
                    }
                }
            }

In template/week/head.inc line 30, I add the following code:
if ( $this->_sidebyside
   && count($this->_currentCalendars) == 1)
{
  foreach($this->_currentCalendars as $cid => $cal)
  {
    if ( $cid != Kronolith::getDefaultCalendar(PERMS_EDIT) )
    {
      $addurl = Util::addParameter($addurl, 'calendar', $cid);
    }
  }
}





More information about the bugs mailing list