Changeset 3654 for branches/2.2/mobile


Ignore:
Timestamp:
01/04/11 16:24:43 (13 years ago)
Author:
eduardoalex
Message:

Ticket #1412 - Adicionada mensagem ao remover contato não selecionado.

Location:
branches/2.2/mobile
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/mobile/inc/class.ui_mobilecc.inc.php

    r3650 r3654  
    232232                function delete_contacts($params) { 
    233233                        $this->bo->set_catalog($params['catalog']); 
    234                         $status = $this->bo->remove_multiple_entries($params['contacts']); 
    235                          
    236                         $type = $this->page_info['actual_catalog']!=='bo_group_manager'?"contacts":"groups"; 
    237                          
    238                         if($status['success']) 
    239                                 header("Location: index.php?menuaction=mobile.ui_mobilecc.index&success_message=".lang("selected $type were removed successfully")); 
    240                         else 
    241                                 header("Location: index.php?menuaction=mobile.ui_mobilecc.index&error_message=".lang("one or more $type couldnt be removed")); 
     234 
     235                        if (!is_array($params['contacts']) ){ 
     236                                header("Location: index.php?menuaction=mobile.ui_mobilecc.index&success_message=".lang("please select one contact")); 
     237                        }else{ 
     238 
     239                                $status = $this->bo->remove_multiple_entries($params['contacts']); 
     240                                 
     241                                $type = $this->page_info['actual_catalog']!=='bo_group_manager'?"contacts":"groups"; 
     242                                 
     243                                if($status['success']) 
     244                                        header("Location: index.php?menuaction=mobile.ui_mobilecc.index&success_message=".lang("selected $type were removed successfully")); 
     245                                else 
     246                                        header("Location: index.php?menuaction=mobile.ui_mobilecc.index&error_message=".lang("one or more $type couldnt be removed")); 
     247                        } 
    242248                } 
    243249                 
  • branches/2.2/mobile/setup/phpgw_pt-br.lang

    r3634 r3654  
    157157Name is mandatory       mobile  pt-br   Nome é obrigatório 
    158158Tel or email is required        mobile  pt-br   Você precisa informar ou o e-mail ou o telefone 
     159please select one contact       mobile  pt-br   Você precisa selecionar pelo menos um contato 
Note: See TracChangeset for help on using the changeset viewer.