Ignore:
Timestamp:
03/08/13 16:32:58 (11 years ago)
Author:
douglas
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/prototype/modules/calendar/schedules.php

    r7967 r7982  
    158158            $attend = Controller::read(array('concept' => 'participant'), null, array('filter' => array('AND', array('=','schedulable',$v['id']), array('=','user', Config::me('uidNumber'))  ))); 
    159159 
     160            $result[$i]['unanswered'] = 0;  
     161  
    160162            if(count($attend) > 0 && !empty($attend)){ 
    161  
    162163                if(array_key_exists(0, $attend)) 
    163164                    $attend = $attend[0]; 
    164165 
    165166                $result[$i]['editable'] = (strstr($attend['acl'],"w") || strstr($attend['acl'],"o") || $attend['isOrganizer'] == '1') ? 1 : 0; 
     167  
     168                if($attend['status'] == STATUS_UNANSWERED)  
     169                    $result[$i]['unanswered'] = 1;  
    166170 
    167171            }else{ 
Note: See TracChangeset for help on using the changeset viewer.