From e6d32fb79a272573362ecf8dea0a093b4626411d Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 8 Dec 2019 20:21:14 -0700 Subject: [PATCH] Update registrations.php --- app/registrations/registrations.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/registrations/registrations.php b/app/registrations/registrations.php index 308252c9c2..d2aab5fbf3 100644 --- a/app/registrations/registrations.php +++ b/app/registrations/registrations.php @@ -110,7 +110,7 @@ $reload = isset($_GET['reload']) && permission_exists('registration_reload') ? true : false; //define location url - $location = 'registrations'.($reload ? '_reload' : null).'.php'; + $location = ($reload ? 'registration_reload.php' : 'registrations.php'); //include the header if (!$reload) { @@ -142,9 +142,11 @@ echo button::create(['type'=>'button','label'=>$text['button-all_profiles'],'icon'=>'network-wired','style'=>'margin-left: 15px;','link'=>$location.($qs['show'] || $qs['search'] ? '?' : null).$qs['show'].$qs['search']]); } } - echo ""; - echo button::create(['label'=>$text['button-search'],'icon'=>$_SESSION['theme']['button_icon_search'],'type'=>'submit','id'=>'btn_search','style'=>($search != '' ? 'display: none;' : null)]); - echo button::create(['label'=>$text['button-reset'],'icon'=>$_SESSION['theme']['button_icon_reset'],'type'=>'button','id'=>'btn_reset','link'=>$location.($qs['show'] || $qs['profile'] ? '?' : null).$qs['show'].$qs['profile'],'style'=>($search == '' ? 'display: none;' : null)]); + if (!$reload) { + echo ""; + echo button::create(['label'=>$text['button-search'],'icon'=>$_SESSION['theme']['button_icon_search'],'type'=>'submit','id'=>'btn_search','style'=>($search != '' ? 'display: none;' : null)]); + echo button::create(['label'=>$text['button-reset'],'icon'=>$_SESSION['theme']['button_icon_reset'],'type'=>'button','id'=>'btn_reset','link'=>$location.($qs['show'] || $qs['profile'] ? '?' : null).$qs['show'].$qs['profile'],'style'=>($search == '' ? 'display: none;' : null)]); + } echo " \n"; echo " \n"; echo "
\n"; @@ -238,4 +240,4 @@ require_once "resources/footer.php"; } -?> \ No newline at end of file +?>