Changeset 6100


Ignore:
Timestamp:
05/04/12 12:39:49 (12 years ago)
Author:
marcieli
Message:

Ticket #2692 - Corrigido problema ao editar marcador, alterar nome e alterar cor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/mail/interceptors/Helpers.php

    r6099 r6100  
    358358        public function verifyNameLabel(&$uri , &$params , &$criteria , $original){  
    359359                        $labels = Controller::find( array('concept' => 'label'), false, array('filter' => array('i=', 'name', $params['name']))); 
    360  ob_start(); 
    361 print_r("labels \n"); 
    362 print_r($labels); 
    363 print_r("params \n"); 
    364 print_r($params); 
    365  
    366 $output = ob_get_clean(); 
    367 file_put_contents( "/tmp/marci.log", $output , FILE_APPEND);  
    368 $key = 'id'; 
     360 
    369361                        if (!empty($labels)){ 
    370362                                foreach ($labels as $i => $v){ 
    371363                                        if(!isset($params['id']) || $v['id'] != $params['id']){ 
    372 /*                                              ob_start(); 
    373                                                 print_r($v['id']); 
    374                                                 print_r($params['id']); 
    375  
    376                                                 $output = ob_get_clean(); 
    377                                                 file_put_contents( "/tmp/marci.log", $output , FILE_APPEND); */ 
    378364                                                throw new Exception('#LabelNameError');  
    379365                                        } 
    380366                                } 
    381367                        }  
    382 /*                      if( !!Controller::find( array('concept' => 'label'), false, array('filter' => array('i=', 'name', $params['name'])) ) )  
    383                         {  
    384                                 throw new Exception('#LabelNameError');  
    385                         }  */ 
    386368        } 
    387369 
Note: See TracChangeset for help on using the changeset viewer.