[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/32: Do no save empty comment or descriptio
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/32: Do no save empty comment or description |
Date: |
Thu, 5 Jan 2023 14:18:28 -0500 (EST) |
sparkyx pushed a commit to branch devel
in repository noalyss.
commit fa6b1a8d43ea63800aa6fb8cf2732ab5171f8d9c
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Dec 3 23:02:36 2022 +0100
Do no save empty comment or description
---
include/class/follow_up.class.php | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/include/class/follow_up.class.php
b/include/class/follow_up.class.php
index ec89f1955..7fa5c4dee 100644
--- a/include/class/follow_up.class.php
+++ b/include/class/follow_up.class.php
@@ -1024,8 +1024,16 @@ class Follow_Up
$this->ag_dest=$http->extract("ag_dest","string",$g_user->get_profile());
$this->ag_priority=$http->extract("ag_priority","string","2");
$this->ag_contact=$http->extract("ag_contact","string","");
- $this->ag_comment=$http->extract("ag_comment","raw","");
- $this->ag_description=$http->extract("ag_description","raw","");
+ $ag_comment=trim($http->extract("ag_comment","raw",""));
+ if ( strip_tags($ag_comment) == '')
+ $this->ag_comment='';
+ else
+ $this->ag_comment=$ag_comment;
+ $ag_description=trim($http->extract("ag_description","raw",""));
+ if ( strip_tags($ag_description) == '')
+ $this->ag_description='';
+ else
+ $this->ag_description=$ag_description;
$this->ag_remind_date=$http->extract("ag_remind_date","string",null);
$this->operation=$http->extract("operation","string",null);
$this->action=$http->extract("action","string",null);
- [Noalyss-commit] [noalyss] branch devel updated (f1d3862e1 -> f78ec1e40), Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 01/32: Do no save empty comment or description,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 07/32: Compatibility PHP8.1 , node can be null, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 10/32: Esthetic, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 13/32: Correct return value of Table_Data_SQL->load : false if nothing found, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 11/32: Cleaning code : TVA rewritten, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 23/32: New : Follow Up , the description modifiable is using NicEdit, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 32/32: Merge branch '9035-followup-description-mod-rtf', Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 22/32: PHP 8.1 , option ASSERT_QUIET_EVAL is removed, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 27/32: Fix Bug TVA : cannot save VAT, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 20/32: New #0001327: Code TVA : utilisation des symboles plutôt que des codes, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 02/32: Bug : incorrect name, Dany De Bontridder, 2023/01/05