Code Duplication    Length = 20-20 lines in 2 locations

programs/vacuser.php 2 locations

@@ 2266-2285 (lines=20) @@
2263
2264
2265
2266
function absences_workperiodGotoList()
2267
{
2268
    $agent = absences_Agent::getCurrentUser();
2269
    
2270
    if (!empty($_POST['workperiod']['id_user'])) {
2271
        
2272
        
2273
        if ($agent->isManager()) {
2274
            $url = new bab_url(absences_addon()->getUrl().'vacadmwd');
2275
            $url->location();
2276
            return;
2277
        }
2278
        
2279
        //TODO: liste des demandes de l'entite si gestionnaire delegue
2280
    }
2281
    
2282
    $url = bab_url::get_request('tg');
2283
    $url->idx = 'lvreq';
2284
    $url->location();
2285
}
2286
2287
2288
@@ 2470-2489 (lines=20) @@
2467
2468
2469
2470
function absences_cetGotoList()
2471
{
2472
    $agent = absences_Agent::getCurrentUser();
2473
2474
    if (!empty($_POST['cet']['id_user'])) {
2475
2476
2477
        if ($agent->isManager()) {
2478
            $url = new bab_url(absences_addon()->getUrl().'vacadmcet');
2479
            $url->location();
2480
            return;
2481
        }
2482
2483
        //TODO: liste des demandes de l'entite si gestionnaire delegue
2484
    }
2485
2486
    $url = bab_url::get_request('tg');
2487
    $url->idx = 'lvreq';
2488
    $url->location();
2489
}
2490
2491
2492
/**