Ignore:
Timestamp:
01/21/11 15:10:18 (13 years ago)
Author:
asaikawa
Message:

Ticket #317 - Criado parametro para permitir que a busca global seja selecionada ao abrir a janela de selecao

Location:
branches/2.2/workflow/inc/smarty/wf_plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/workflow/inc/smarty/wf_plugins/function.wf_select_user.php

    r3167 r3715  
    3737                'hide_sectors' => false, 
    3838                'onlyVisibleAccounts' => true, 
     39                'useGlobalSearch' => false, 
    3940                'rows'=> 2); 
    4041        $extractParams = array( 
     
    4546                'cols', 
    4647                'rows', 
    47                 'onlyVisibleAccounts'); 
     48                'onlyVisibleAccounts', 
     49                'useGlobalSearch'); 
    4850 
    4951        /* verifica se todos os parâmetros obrigatórios foram passados */ 
     
    100102        else 
    101103                $extraParams .= "&onlyVisibleAccounts=true"; 
     104        if (empty($useGlobalSearch) || $useGlobalSearch === 'false') 
     105                $extraParams .= "&useGlobalSearch=false"; 
     106        else 
     107                $extraParams .= "&useGlobalSearch=true"; 
    102108 
    103109        $image = Factory::getInstance('TemplateServer')->generateImageLink('add_user.png'); 
  • branches/2.2/workflow/inc/smarty/wf_plugins/function.wf_select_users.php

    r3704 r3715  
    2727                'hide_sectors' => false, 
    2828                'onlyVisibleAccounts' => true, 
     29                'useGlobalSearch' => false, 
    2930                'get_email' => false, 
    3031                'value' => array()); 
     
    3233                'name', 
    3334                'value', 
    34                 'onlyVisibleAccounts'); 
     35                'onlyVisibleAccounts', 
     36                'useGlobalSearch'); 
    3537 
    3638        /* verifica se todos os parâmetros obrigatórios foram passados */ 
     
    6668        else 
    6769                $extraParams .= "&onlyVisibleAccounts=true"; 
     70        if (empty($useGlobalSearch) || $useGlobalSearch === 'false') 
     71                $extraParams .= "&useGlobalSearch=false"; 
     72        else 
     73                $extraParams .= "&useGlobalSearch=true"; 
    6874 
    6975        $output = '<table border="0"><tr><td>'; 
Note: See TracChangeset for help on using the changeset viewer.