noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 83/323: Esthétique Recherche action


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 83/323: Esthétique Recherche action
Date: Wed, 14 Mar 2018 17:38:27 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit c84e95f2fc3805258bde4607a7985eaf038a19df
Author: Dany De Bontridder <address@hidden>
Date:   Thu Jan 25 09:49:55 2018 +0100

    Esthétique Recherche action
---
 include/class/follow_up.class.php | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/include/class/follow_up.class.php 
b/include/class/follow_up.class.php
index a554f31..91a368b 100644
--- a/include/class/follow_up.class.php
+++ b/include/class/follow_up.class.php
@@ -1164,21 +1164,19 @@ class Follow_Up
     static function display_search($cn, $inner=false)
     {
         global $g_user;
-        $a=(isset($_GET['action_query']))?$_GET['action_query']:"";
-        $qcode=(isset($_GET['qcode']))?$_GET['qcode']:"";
-
-        $supl_hidden='';
-        if (isset($_REQUEST['sc']))
-            $supl_hidden.=HtmlInput::hidden('sc', $_REQUEST['sc']);
+        $http=new HttpInput();
+        $a=$http->get("action_query","string","");
+        $qcode=$http->get("qcode","string","");
+        
+        $supl_hidden=HtmlInput::array_to_hidden(['sc','sb','ac'], $_REQUEST);
+        
         if (isset($_REQUEST['f_id']))
         {
-            $supl_hidden.=HtmlInput::hidden('f_id', $_REQUEST['f_id']);
-            $f=new Fiche($cn, $_REQUEST['f_id']);
+            $f_id=$http->request('f_id','number');
+            $supl_hidden.=HtmlInput::hidden('f_id', $f_id);
+            $f=new Fiche($cn, $f_id);
             $supl_hidden.=HtmlInput::hidden('qcode_dest', 
$f->get_quick_code());
         }
-        if (isset($_REQUEST['sb']))
-            $supl_hidden.=HtmlInput::hidden('sb', $_REQUEST['sb']);
-        $supl_hidden.=HtmlInput::hidden('ac', $_REQUEST['ac']);
 
         /**
          * Show the default button (add action, show search...)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]