noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 24/29: Contact : navigation bar was not corre


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 24/29: Contact : navigation bar was not correct
Date: Wed, 4 Nov 2020 11:08:45 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 4f1d78b311c50bc5be7da6a76764935decc66668
Author: Dany wm De Bontridder <danydb@noalyss.eu>
AuthorDate: Sun Nov 1 20:10:49 2020 +0100

    Contact : navigation bar was not correct
---
 include/class/contact.class.php | 2 +-
 include/contact.inc.php         | 7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/include/class/contact.class.php b/include/class/contact.class.php
index 4bd785c..39bf449 100644
--- a/include/class/contact.class.php
+++ b/include/class/contact.class.php
@@ -59,7 +59,7 @@ class contact extends Fiche
         $script=$_SERVER['PHP_SELF'];
         // Creation of the nav bar
         // Get the max numberRow
-        
$all_contact=$this->count_by_modele($this->fiche_def_ref,$p_search,$extra_sql);
+        
$all_contact=$this->count_by_modele($this->fiche_def_ref,$p_search,$extra_sql.$p_sql);
         // Get offset and page variable
         $offset=( isset ($_REQUEST['offset'] )) ?$_REQUEST['offset']:0;
         $page=(isset($_REQUEST['page']))?$_REQUEST['page']:1;
diff --git a/include/contact.inc.php b/include/contact.inc.php
index f226618..ca3b0ba 100644
--- a/include/contact.inc.php
+++ b/include/contact.inc.php
@@ -29,8 +29,9 @@ require_once NOALYSS_INCLUDE.'/class/fiche_def.class.php';
 
 $http=new HttpInput();
 
-$low_action = (isset($_REQUEST['sb'])) ? $_REQUEST['sb'] : "list";
-/** \file
+$low_action = $http->request('sb','string','list');
+/**
+ * \file
  * \brief Called from the module "Gestion" to manage the contact
  */
 $href=basename($_SERVER['PHP_SELF']);
@@ -81,7 +82,7 @@ if ($low_action == "list")
                        ' where  frd_id=' . FICHE_TYPE_CONTACT .
                        ' order by fd_label ', 1);
                $sel_card->selected = (isset($_GET['cat'])) ? $_GET['cat'] : -1;
-               $sel_card->javascript = ' onchange="submit(this);"';
+               $sel_card->javascript = ' 
onchange="waiting_box();submit(this);"';
 
                echo _('Catégorie :') . $sel_card->input();
 



reply via email to

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