Changeset 3179


Ignore:
Timestamp:
08/25/10 11:58:06 (14 years ago)
Author:
niltonneto
Message:

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

Location:
branches/2.0/contactcenter
Files:
2 edited

Legend:

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

    r2894 r3179  
    995995                                { 
    996996                                        unset($this->page_info['actual_entries']); 
    997                                         foreach ($result as $id => $value) 
    998                                         { 
    999                                                 if($this->page_info['actual_catalog']['class'] != 'bo_shared_people_manager' && $this->page_info['actual_catalog']['class'] != 'bo_shared_group_manager') 
    1000                                                         $this->page_info['actual_entries'][] = $value[$field_name]; 
    1001                                                 else 
    1002                                                         $this->page_info['actual_entries'][] = array(0=>$value[$field_name],1=>$value['perms'],2=>$value['owner']); 
    1003                                         }  
    1004                                         //print_r($this->page_info['actual_entries']); 
     997                                        if(is_array($result)) { 
     998                                                foreach ($result as $id => $value) 
     999                                                { 
     1000                                                        if($this->page_info['actual_catalog']['class'] != 'bo_shared_people_manager' && $this->page_info['actual_catalog']['class'] != 'bo_shared_group_manager') 
     1001                                                                $this->page_info['actual_entries'][] = $value[$field_name]; 
     1002                                                        else 
     1003                                                                $this->page_info['actual_entries'][] = array(0=>$value[$field_name],1=>$value['perms'],2=>$value['owner']); 
     1004                                                }  
     1005                                        } 
    10051006                                } 
    10061007                        } 
  • branches/2.0/contactcenter/js/cc_tree.js

    r285 r3179  
    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.