forked from extern/egroupware
Fix for bug #437633.
This commit is contained in:
parent
435ff9951a
commit
954571562d
@ -117,8 +117,8 @@
|
||||
$thisminute = (int)$minute;
|
||||
}
|
||||
|
||||
$phpgw->calendar->set_start($thisyear,$thismonth,$thisday,$thishour,$this->minute,0);
|
||||
$phpgw->calendar->set_end($thisyear,$thismonth,$thisday,$thishour,$this->minute,0);
|
||||
$phpgw->calendar->set_start($thisyear,$thismonth,$thisday,$thishour,$thisminute,0);
|
||||
$phpgw->calendar->set_end($thisyear,$thismonth,$thisday,$thishour,$thisminute,0);
|
||||
$phpgw->calendar->set_title('');
|
||||
$phpgw->calendar->set_description('');
|
||||
$phpgw->calendar->add_attribute('priority',2);
|
||||
|
@ -278,6 +278,10 @@ class calendar__
|
||||
function event_init()
|
||||
{
|
||||
$this->event = CreateObject('calendar.calendar_item');
|
||||
$this->event->start = new calendar_time;
|
||||
$this->event->end = new calendar_time;
|
||||
$this->event->mod = new calendar_time;
|
||||
$this->event->recur_enddate = new calendar_time;
|
||||
$this->add_attribute('owner',intval($this->user));
|
||||
}
|
||||
|
||||
|
@ -108,12 +108,8 @@ class calendar_ extends calendar__
|
||||
|
||||
if($this->stream->num_rows() > 0)
|
||||
{
|
||||
$this->event = CreateObject('calendar.calendar_item');
|
||||
$this->event->start = new calendar_time;
|
||||
$this->event->end = new calendar_time;
|
||||
$this->event->mod = new calendar_time;
|
||||
$this->event->recur_enddate = new calendar_time;
|
||||
|
||||
$this->event_init();
|
||||
|
||||
$this->stream->next_record();
|
||||
// Load the calendar event data from the db into $event structure
|
||||
// Use http://www.php.net/manual/en/function.mcal-fetch-event.php as the reference
|
||||
|
Loading…
Reference in New Issue
Block a user