Ignore:
Timestamp:
03/08/13 11:50:57 (11 years ago)
Author:
cristiano
Message:

Ticket #3378 - Importação automatica de eventos nos participantes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/schedules.php

    r7956 r7980  
    161161            $attend = Controller::read(array('concept' => 'participant'), null, array('filter' => array('AND', array('=','schedulable',$v['id']), array('=','user', Config::me('uidNumber'))  ))); 
    162162 
     163            $result[$i]['unanswered'] = 0; 
     164 
    163165            if(count($attend) > 0 && !empty($attend)){ 
    164  
    165166                if(array_key_exists(0, $attend)) 
    166167                    $attend = $attend[0]; 
    167168 
    168169                $result[$i]['editable'] = (strstr($attend['acl'],"w") || strstr($attend['acl'],"o") || $attend['isOrganizer'] == '1') ? 1 : 0; 
     170 
     171                if($attend['status'] == STATUS_UNANSWERED) 
     172                    $result[$i]['unanswered'] = 1; 
    169173 
    170174            }else{ 
Note: See TracChangeset for help on using the changeset viewer.