Code Duplication    Length = 20-20 lines in 2 locations

programs/vacuser.php 2 locations

@@ 2230-2249 (lines=20) @@
2227
2228
2229
2230
function absences_workperiodGotoList()
2231
{
2232
    $agent = absences_Agent::getCurrentUser();
2233
    
2234
    if (!empty($_POST['workperiod']['id_user'])) {
2235
        
2236
        
2237
        if ($agent->isManager()) {
2238
            $url = new bab_url(absences_addon()->getUrl().'vacadmwd');
2239
            $url->location();
2240
            return;
2241
        }
2242
        
2243
        //TODO: liste des demandes de l'entite si gestionnaire delegue
2244
    }
2245
    
2246
    $url = bab_url::get_request('tg');
2247
    $url->idx = 'lvreq';
2248
    $url->location();
2249
}
2250
2251
2252
@@ 2434-2453 (lines=20) @@
2431
2432
2433
2434
function absences_cetGotoList()
2435
{
2436
    $agent = absences_Agent::getCurrentUser();
2437
2438
    if (!empty($_POST['cet']['id_user'])) {
2439
2440
2441
        if ($agent->isManager()) {
2442
            $url = new bab_url(absences_addon()->getUrl().'vacadmcet');
2443
            $url->location();
2444
            return;
2445
        }
2446
2447
        //TODO: liste des demandes de l'entite si gestionnaire delegue
2448
    }
2449
2450
    $url = bab_url::get_request('tg');
2451
    $url->idx = 'lvreq';
2452
    $url->location();
2453
}
2454
2455
2456
/**