Merge branch '826-Error-en-paginación-de-usuarios-despues-de-borrar-crear-un-usuario' into 'develop'

Pagination links include delete, create and other params, now not use these para…

See merge request 
This commit is contained in:
vgilc 2017-05-31 17:38:54 +02:00
commit 4e4415a102

@ -1613,6 +1613,17 @@ function ui_pagination ($count, $url = false, $offset = 0,
$url = ui_get_url_refresh (array ($offset_name => false));
}
// Pagination links for users include delete, create and other params, now not use these params, and not retry the previous action when go to pagination link.
$remove = array("user_del","disable_user","delete_user");
$finalUrl = $config['homeurl'].'?';
foreach($_GET as $index => $get){
if(!in_array($index, $remove)){
$finalUrl .= $index.'='.$get.'&';
}
}
$url = $finalUrl;
/*
URL passed render links with some parameter
&offset - Offset records passed to next page