Changeset 3306


Ignore:
Timestamp:
09/29/10 16:49:28 (14 years ago)
Author:
eduardoalex
Message:

Ticket #1358 - Corrigido a forma de verificacao de conflito passando o usuario corrente como parametro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/calendar/inc/class.uicalendar.inc.php

    r3284 r3306  
    19421942                { 
    19431943                        if(!$overlapping_events){                                        
    1944                                 $notify_message = lang('Este evento entra em conflito com outro que você participa.'); 
     1944                                $notify_message = lang('This event conflicts with your other event.'); 
    19451945         
    19461946                                $action_ignore = $GLOBALS['phpgw']->link('/index.php',Array('menuaction'=>'calendar.uicalendar.set_action','cal_id' => $event[id], 'action' => 3, 'response' => 1,'user_id' => $user_id, 'ignore_conflict' => 1)); 
     
    20512051                                (!isset($_GET['response']) && $_GET['action'] == 3 && !$_GET['ignore_conflict'] == 1)) 
    20522052                        { 
     2053                                if($event['id']) 
     2054                                { 
     2055                                        $event_ids[] = $event['id']; 
     2056                                } 
    20532057                                if($event['reference']) 
    20542058                                { 
    20552059                                        $event_ids[] = $event['reference']; 
    20562060                                } 
    2057                                 $event['participants'] = Array($_GET['user_id'] => $event['participants'][$_GET['user_id']]); 
     2061                                 
     2062                                $event['participants'] = Array($_SESSION['phpgw_info']['expressomail']['user']['account_id'] => $event['participants'][$_SESSION['phpgw_info']['expressomail']['user']['account_id']]); 
     2063 
    20582064                                $overlapping_events = $this->bo->overlap( 
    20592065                                        $this->bo->maketime($event['start']), 
     
    48724878                        { 
    48734879                                $var = Array( 
    4874                                         'action_url_button'     => $this->page('set_action','&cal_id='.$cal_id.'&action='.$param.'&user_id='.$this->bo->owner), 
     4880                                        'action_url_button'     => $this->page('set_action','&cal_id='.$cal_id.'&action='.$param), 
    48754881                                        'action_text_button'    => '  '.$text.'  ', 
    48764882                                        'action_confirm_button' => '', 
Note: See TracChangeset for help on using the changeset viewer.