Changeset 1949 for trunk/calendar


Ignore:
Timestamp:
01/26/10 09:13:57 (14 years ago)
Author:
eduardoalex
Message:

Ticket #715 - Corrigido a montagem do combo tipo de evento e alterado o tipo do compromisso privado de e para P

Location:
trunk/calendar/inc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/inc/class.bocalendar.inc.php

    r1849 r1949  
    919919                                } 
    920920 
    921                                 $is_public = ($l_cal['type'] != 'private'); 
     921                                $is_public = ($l_cal['type'] != 'private' && $l_cal['type'] != 'privateHiddenFields'); 
    922922                                $this->so->event_init(); 
    923923                                $this->add_attribute('uid',$l_cal['uid']); 
  • trunk/calendar/inc/class.socalendar_sql.inc.php

    r583 r1949  
    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                        } 
  • trunk/calendar/inc/class.uicalendar.inc.php

    r1849 r1949  
    50415041                        $var['access'] = Array( 
    50425042                        'field' => lang('Type'), 
    5043                         '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>' 
     5043                        '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>' 
    50445044                        ); //event['public'] 
    50455045 
Note: See TracChangeset for help on using the changeset viewer.