Changeset 3704 for branches/2.2/workflow
- Timestamp:
- 01/18/11 17:08:12 (13 years ago)
- Location:
- branches/2.2/workflow/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/workflow/inc/class.bo_participants.inc.php
r3167 r3704 64 64 } 65 65 66 $id = ($params['id'] === 'mail') ? 'mail' : 'id'; 67 $usePreffix = ($params['usePreffix'] == true) ? true : false; 66 if($params['id'] === 'mail') 67 { 68 $id = 'mail'; 69 $usePreffix = false; 70 } 71 else 72 { 73 $id = 'id'; 74 $usePreffix = ($params['usePreffix'] == true) ? true : false; 75 } 68 76 69 77 $output = array(); … … 189 197 if (!$raw) 190 198 { 191 $id = ($params['id'] === 'mail') ? 'mail' : 'id'; 192 $usePreffix = ($params['usePreffix'] == true) ? true : false; 199 if($params['id'] === 'mail') 200 { 201 $id = 'mail'; 202 $usePreffix = false; 203 } 204 else 205 { 206 $id = 'id'; 207 $usePreffix = ($params['usePreffix'] == true) ? true : false; 208 } 193 209 194 210 $newOutput = array(); -
branches/2.2/workflow/inc/smarty/wf_plugins/function.wf_select_users.php
r3167 r3704 9 9 * - hide_groups : indica se deve-se omitir os grupos na tela de seleção. 10 10 * - onlyVisibleAccounts : indica se devem ser recuperadas apenas as contas visíveis, ou se as ocultas também devem ser listadas. 11 * - get_email : indica se deve ser buscado o e-mail ou o id. 11 12 * - organization : nome da organização que estará previamente selecionada. 12 13 * @param object &$smarty Instância do objeto smarty em uso … … 26 27 'hide_sectors' => false, 27 28 'onlyVisibleAccounts' => true, 29 'get_email' => false, 28 30 'value' => array()); 29 31 $extractParams = array( … … 48 50 $name_desc = $name . "_desc"; 49 51 52 /* caso seja passado get_email=true, o parâmetro usePreffix não é utilizado */ 50 53 $extraParams = 'usePreffix=1'; 51 54 if ($params['hide_groups'] == true) … … 57 60 if ($params['hide_sectors'] == true) 58 61 $extraParams .= "&hideSectors=1"; 62 if ($params['get_email'] == true) 63 $extraParams .= "&mail=1"; 59 64 if (empty($onlyVisibleAccounts) || $onlyVisibleAccounts === 'false') 60 65 $extraParams .= "&onlyVisibleAccounts=false";
Note: See TracChangeset
for help on using the changeset viewer.