Changeset 3968


Ignore:
Timestamp:
04/11/11 11:14:53 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1596 - Colocar campo que identifique o ultimo usuário que alterou agenda compartilhada

Location:
branches/2.2.0.1/calendar
Files:
8 edited

Legend:

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

    r3966 r3968  
    39623962                        ); 
    39633963 
     3964                        $var['alter_by'] = Array( 
     3965                                'field' => $this->translate('Alter by'), 
     3966                                'data'  => $event['alter_by'] 
     3967                        ); 
     3968 
    39643969                        $var['access'] = Array( 
    39653970                                'field' => lang('Access'), 
  • branches/2.2.0.1/calendar/inc/class.bocustom_fields.inc.php

    r3966 r3968  
    3232                        'alarm'       => 'Alarm', 
    3333                        'recure_type' => 'Repetition', 
     34                        'alter_by'   =>  'Alter by', 
    3435                        'attachment' => 'attachment' 
    3536                ); 
  • branches/2.2.0.1/calendar/inc/class.socalendar__.inc.php

    r3966 r3968  
    102102                } 
    103103 
     104                function set_alter_by($alter_by='') 
     105                { 
     106                    $this->add_attribute('alter_by',$alter_by); 
     107                } 
     108 
    104109                function set_attachment($attachment='') 
    105110                { 
  • branches/2.2.0.1/calendar/inc/class.socalendar_sql.inc.php

    r3966 r3968  
    569569                                $this->set_title(stripslashes($GLOBALS['phpgw']->strip_html($this->stream->f('title')))); 
    570570                                $this->set_description(stripslashes($GLOBALS['phpgw']->strip_html($this->stream->f('description')))); 
     571                                $this->set_alter_by(stripslashes($GLOBALS['phpgw']->strip_html($this->stream->f('alter_by')))); 
    571572                                $this->set_attachment(stripslashes($GLOBALS['phpgw']->strip_html($this->stream->f('attachment')))); 
    572573                                $this->set_ex_participants(stripslashes($GLOBALS['phpgw']->strip_html($this->stream->f('ex_participants')))); 
     
    978979                                        . "description='".$this->stream->db_addslashes($event['description'])."', " 
    979980                                        . "attachment='".$this->stream->db_addslashes(serialize($event['attachment']))."', " 
     981                                        . "alter_by='".$this->stream->db_addslashes($GLOBALS['phpgw_info']['user']['fullname'])."', " 
    980982                                        . "ex_participants='".$this->stream->db_addslashes($event['ex_participants'])."', " 
    981983                                        . "location='".$this->stream->db_addslashes($event['location'])."', " 
  • branches/2.2.0.1/calendar/setup/setup.inc.php

    r3772 r3968  
    1313        $setup_info['calendar']['name']    = 'calendar'; 
    1414        $setup_info['calendar']['title']    = 'Calendar'; 
    15         $setup_info['calendar']['version'] = '2.2.000'; 
     15        $setup_info['calendar']['version'] = '2.2.003'; 
    1616        $setup_info['calendar']['app_order'] = 3; 
    1717        $setup_info['calendar']['enable']  = 1; 
  • branches/2.2.0.1/calendar/setup/tables_update.inc.php

    r3966 r3968  
    8585            $GLOBALS['phpgw_setup']->db->query("ALTER TABLE phpgw_cal ADD COLUMN attachment text"); 
    8686        } 
     87 
     88        $test[] = '2.2.002'; 
     89        function calendar_upgrade2_2_002() 
     90        { 
     91            $GLOBALS['phpgw_setup']->db->query("ALTER TABLE phpgw_cal ADD COLUMN alter_by varchar(160)"); 
     92            $GLOBALS['setup_info']['calendar']['currentver'] = '2.2.003'; 
     93            return $GLOBALS['setup_info']['calendar']['currentver']; 
     94        } 
    8795?> 
Note: See TracChangeset for help on using the changeset viewer.