Changeset 1955 for branches/2.0


Ignore:
Timestamp:
02/01/10 15:25:08 (14 years ago)
Author:
niltonneto
Message:

Ticket #715 - Corrigido bug ao visualizar compromisso restrito e privado.

Location:
branches/2.0/calendar/inc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/calendar/inc/class.bocalendar.inc.php

    r924 r1955  
    896896                                } 
    897897 
    898                                 $is_public = ($l_cal['type'] != 'private'); 
     898                                $is_public = ($l_cal['type'] != 'private' && $l_cal['type'] != 'privateHiddenFields'); 
    899899                                $this->so->event_init(); 
    900900                                $this->add_attribute('uid',$l_cal['uid']); 
  • branches/2.0/calendar/inc/class.socalendar_sql.inc.php

    r583 r1955  
    957957                                if ($event['type'] == 'hourAppointment') 
    958958                                        $type = 'H'; 
    959                                 else 
     959                                else if($event['type'] == 'privateHiddenFields'){ 
     960                                        $type = 'P'; 
     961                                }else 
    960962                                        $type = 'E'; 
    961963                        } 
  • branches/2.0/calendar/inc/class.uicalendar.inc.php

    r1641 r1955  
    45094509                        $var['access'] = Array( 
    45104510                        'field' => lang('Type'), 
    4511                         'data'  => '<select onchange="javascript:changeViewMode(this.value);" id="cal[type]" name="cal[type]" '.($event['type'] == 'H'?'DISABLED':'').'><option value="normal">'.lang('Normal').'</option><option value="private" '.(!$event['public']?'SELECTED':'').' >'. lang('Restrict').'</option><option value="privateHiddenFields" '.(!$event['public']?'SELECTED':'').' >'. lang('Private').'</option><option value="hourAppointment" '.($event['type'] == 'H'?'SELECTED':'').' >'.lang('Hours Appointment').'</option></select>' 
     4511                        'data'  => '<select onchange="javascript:changeViewMode(this.value);" id="cal[type]" name="cal[type]" '.($event['type'] == 'H'?'DISABLED':'').'><option value="normal" '.(($event['public'] && $event['type'] == 'E')?'SELECTED':'').' >'.lang('Normal').'</option><option value="private" '.((!$event['public'] && $event['type'] == 'E')?'SELECTED':'').' >'. lang('Restrict').'</option><option value="privateHiddenFields" '.($event['type']=='P'?'SELECTED':'').' >'. lang('Private').'</option><option value="hourAppointment" '.($event['type'] == 'H'?'SELECTED':'').' >'.lang('Hours Appointment').'</option></select>' 
    45124512                        ); //event['public'] 
    45134513 
Note: See TracChangeset for help on using the changeset viewer.