Ignore:
Timestamp:
08/25/10 12:03:25 (14 years ago)
Author:
niltonneto
Message:

Ticket #1167 - Corrigido problema ao clicar em organização vazia.

Location:
branches/2.2/contactcenter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/contactcenter/inc/class.ui_data.inc.php

    r3018 r3180  
    11401140                                { 
    11411141                                        unset($this->page_info['actual_entries']); 
    1142                                         foreach ($result as $id => $value) 
    1143                                         { 
    1144 /**rev 104**/ 
    1145                                         //      $this->page_info['actual_entries'][] = $value[$field_name]; 
    1146                                         //} 
    1147                                                 if($this->page_info['actual_catalog']['class'] != 'bo_shared_people_manager' && $this->page_info['actual_catalog']['class'] != 'bo_shared_group_manager') 
    1148                                                         $this->page_info['actual_entries'][] = $value[$field_name]; 
    1149                                                 else 
    1150                                                         $this->page_info['actual_entries'][] = array(0=>$value[$field_name],1=>$value['perms'],2=>$value['owner']); 
     1142                                        if(is_array($result)) { 
     1143                                                foreach ($result as $id => $value) 
     1144                                                { 
     1145                                                        if($this->page_info['actual_catalog']['class'] != 'bo_shared_people_manager' && $this->page_info['actual_catalog']['class'] != 'bo_shared_group_manager') 
     1146                                                                $this->page_info['actual_entries'][] = $value[$field_name]; 
     1147                                                        else 
     1148                                                                $this->page_info['actual_entries'][] = array(0=>$value[$field_name],1=>$value['perms'],2=>$value['owner']); 
     1149                                                } 
    11511150                                        } 
    1152 /****/ 
    1153                                         //print_r($this->page_info['actual_entries']); 
    11541151                                } 
    11551152                        } 
  • branches/2.2/contactcenter/js/cc_tree.js

    r1598 r3180  
    6767                        _this.catalog_perms = parseInt(data['perms']); 
    6868                         
    69                         if (_this.afterSetCatalog) 
     69                        if(_this.catalog_perms == 0){ 
     70                                if(CC_visual == 'cards') 
     71                                        drawCards(0); 
     72                                else if(CC_visual == 'table') 
     73                                        drawTable(0); 
     74                                setPages(0,0); 
     75                        } 
     76                        else if (_this.afterSetCatalog) 
    7077                        { 
    7178                                typeof(_this.afterSetCatalog) == 'function' ? _this.afterSetCatalog() : eval(_this.afterSetCatalog); 
Note: See TracChangeset for help on using the changeset viewer.