[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 152/173: Bug : filter of the search and tag
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 152/173: Bug : filter of the search and tag |
Date: |
Mon, 22 Mar 2021 12:59:18 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 1ca321a1b5c0c698ae37325eed5262479a6ec8cb
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Wed Mar 10 09:32:54 2021 +0100
Bug : filter of the search and tag
---
include/ajax/ajax_search_filter.php | 1 +
include/class/tag.class.php | 1 +
2 files changed, 2 insertions(+)
diff --git a/include/ajax/ajax_search_filter.php
b/include/ajax/ajax_search_filter.php
index c27458f..dbf0109 100644
--- a/include/ajax/ajax_search_filter.php
+++ b/include/ajax/ajax_search_filter.php
@@ -213,6 +213,7 @@ if ($op=="delete_search_operation")
if ($op=='display_filter_tag')
{
$tag=$http->request("uf_tag");
+ if ( trim($tag)=="") {return;}
$div=$http->request("div");
$aTag=explode(',', $tag);
if (is_array($aTag))
diff --git a/include/class/tag.class.php b/include/class/tag.class.php
index 5672adf..5b2097e 100644
--- a/include/class/tag.class.php
+++ b/include/class/tag.class.php
@@ -25,6 +25,7 @@ class Tag
function __construct($p_cn,$id=-1)
{
$this->cn=$p_cn;
+ $id = (trim($id)=="")?-1:$id;
$this->data=new Tag_SQL($p_cn,$id);
}
public function get_data()
- [Noalyss-commit] [noalyss] 147/173: Error : duplicate function update_row, (continued)
- [Noalyss-commit] [noalyss] 147/173: Error : duplicate function update_row, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 151/173: htmlspecialchars use HTML5 and UTF8, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 114/173: fixup! Printtva , under some circumstance tva_summary::check fails, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 131/173: Merge branch 'dev-7201' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 142/173: Merge commit 'db9d4c53d1325b1ab3c8a3fcae6ddd201799fb42' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 146/173: Merge branch 'pre7300' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 150/173: Include Bootstrap, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 154/173: create dossier, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 169/173: Task #1907: Gestion : événement ajout de lien hyperlnk, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 101/173: task #0001698: Problème affichage historique fiches Prevent direct use of http_request translation Cosmetic, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 152/173: Bug : filter of the search and tag,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 160/173: typo, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 159/173: Merge branch 'master' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 162/173: Merge branch 'master' into dev-8-bootstrap, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 164/173: Merge branch 'master' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 170/173: Task #1913 Correct calendar : nav button CSS esthétique, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 171/173: Cosmetic button, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 94/173: Merge branch 'accept7100' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 107/173: Merge branch 'accept7100' into entreprise, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 115/173: indent, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 118/173: Adapt printtva to entreprise, Dany De Bontridder, 2021/03/22