Changeset 5541


Ignore:
Timestamp:
02/23/12 21:26:32 (12 years ago)
Author:
adriano
Message:

Ticket #2486 - correcoes de erros nas funcionalidades de marcadores e de sinalizadores de mensagens

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r5539 r5541  
    51895189                                        array('filter' => $filter, 'criteria' => array('deepness' => '2')) 
    51905190                                ); 
    5191                                 foreach ($followupflagged as $i => $v) 
    5192                                         { 
    5193                                                 if(isset($v['followupflagId'])) 
    5194                                                 { 
    5195                                                         $followupflag = Controller::find( array( 'concept' => 'followupflag' ) , false, array( 'filter' => array('=', 'id'  ,  $v['followupflagId']) ));      
    5196                                                         $followupflagged[$i]['followupflag'] = $followupflag[0]; 
    5197                                                 } 
    5198  
    5199                                         } 
    5200                                          
     5191 
     5192                                if(isset($followupflagged[0]['followupflagId'])) 
     5193                                { 
     5194                                        $followupflag = Controller::read( array( 'concept' => 'followupflag', 'id' => $followupflagged[0]['followupflagId'] ));      
     5195                                        //$followupflagged[0]['followupflag'] = []; 
     5196                                        $followupflagged[0]['followupflag'] = $followupflag; 
     5197                                        $return['msgs'][$i]['followupflagged'] = $followupflagged[0]; 
     5198 
     5199                                } 
     5200 
    52015201                                $labeleds = Controller::find( 
    52025202                                        array('concept' => 'labeled'), 
     
    52045204                                        array('filter' => $filter, 'criteria' => array('deepness' => '2')) 
    52055205                                ); 
    5206                                                  
     5206                                foreach ($labeleds as $e){ 
     5207                                        $labels = Controller::read( array( 'concept' => 'label', 'id' =>  $e['labelId']));      
     5208                                        $return['msgs'][$i]['labels'][$e['labelId']] = $labels; 
     5209                                } 
     5210                                 
    52075211                                $return['msgs'][$i]['flag'] = ' '; 
    52085212                                $return['msgs'][$i]['flag'] .= $msg->Unseen ? $msg->Unseen : ''; 
     
    52195223                                $return['msgs'][$i]['boxname'] = $folder; 
    52205224                                $return['msgs'][$i]['uid'] = $v; 
    5221                                 $return['msgs'][$i]['followupflagged'] = $followupflagged[0]; 
    5222                                 $return['msgs'][$i]['labels'] = $labeleds; 
     5225 
    52235226                                $i++; 
    52245227                        }        
Note: See TracChangeset for help on using the changeset viewer.