Code Duplication    Length = 20-20 lines in 2 locations

programs/vacuser.php 2 locations

@@ 2210-2229 (lines=20) @@
2207
2208
2209
2210
function absences_workperiodGotoList()
2211
{
2212
    $agent = absences_Agent::getCurrentUser();
2213
    
2214
    if (!empty($_POST['workperiod']['id_user'])) {
2215
        
2216
        
2217
        if ($agent->isManager()) {
2218
            $url = new bab_url(absences_addon()->getUrl().'vacadmwd');
2219
            $url->location();
2220
            return;
2221
        }
2222
        
2223
        //TODO: liste des demandes de l'entite si gestionnaire delegue
2224
    }
2225
    
2226
    $url = bab_url::get_request('tg');
2227
    $url->idx = 'lvreq';
2228
    $url->location();
2229
}
2230
2231
2232
@@ 2414-2433 (lines=20) @@
2411
2412
2413
2414
function absences_cetGotoList()
2415
{
2416
    $agent = absences_Agent::getCurrentUser();
2417
2418
    if (!empty($_POST['cet']['id_user'])) {
2419
2420
2421
        if ($agent->isManager()) {
2422
            $url = new bab_url(absences_addon()->getUrl().'vacadmcet');
2423
            $url->location();
2424
            return;
2425
        }
2426
2427
        //TODO: liste des demandes de l'entite si gestionnaire delegue
2428
    }
2429
2430
    $url = bab_url::get_request('tg');
2431
    $url->idx = 'lvreq';
2432
    $url->location();
2433
}
2434
2435
2436
/**