Changeset 7672


Ignore:
Timestamp:
12/18/12 16:12:21 (11 years ago)
Author:
cristiano
Message:

Ticket #3209 - Correção na sincronização de remove

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zpush/lib/request/sync.php

    r7671 r7672  
    11611161                        else { 
    11621162                            // if message deletions are to be moved, move them 
    1163                             if($spa->GetDeletesAsMoves() && $foldertype != SYNC_FOLDER_TYPE_APPOINTMENT && $foldertype != SYNC_FOLDER_TYPE_CONTACT ) { 
     1163                            $folderid = $spa->GetFolderId(); 
     1164 
     1165                            if($folderid == 'contacts' || substr( $folderid , 0 ,8 ) == 'calendar' || !$spa->GetDeletesAsMoves()) 
     1166                            { 
     1167                                $this->importer->ImportMessageDeletion($serverid); 
     1168                                $actiondata["statusids"][$serverid] = SYNC_STATUS_SUCCESS; 
     1169                            } 
     1170                            else 
     1171                            { 
    11641172 
    11651173                                $folderid = self::$backend->GetWasteBasket(); 
     
    11731181                                    ZLog::Write(LOGLEVEL_WARN, "Message should be moved to WasteBasket, but the Backend did not return a destination ID. Message is hard deleted now!"); 
    11741182                            } 
    1175  
    1176                             $this->importer->ImportMessageDeletion($serverid); 
    1177                             $actiondata["statusids"][$serverid] = SYNC_STATUS_SUCCESS; 
    11781183                        } 
    11791184                    } 
Note: See TracChangeset for help on using the changeset viewer.