noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 06/11: New : label cannot be empty


From: dwm
Subject: [Noalyss-commit] [noalyss] 06/11: New : label cannot be empty
Date: Sun, 15 Dec 2024 09:51:25 -0500 (EST)

sparkyx pushed a commit to branch stable
in repository noalyss.

commit 5d416e2d95114b857d55265f9624ad743500c04d
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Mon Dec 9 14:30:07 2024 +0100

    New : label cannot be empty
---
 include/class/tva_rate_mtable.class.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/class/tva_rate_mtable.class.php 
b/include/class/tva_rate_mtable.class.php
index ac7db2a46..8d7897868 100644
--- a/include/class/tva_rate_mtable.class.php
+++ b/include/class/tva_rate_mtable.class.php
@@ -396,7 +396,10 @@ class Tva_Rate_MTable extends Manage_Table_SQL
                 $this->set_error("tva_reverse_account", _("Poste comptable 
inexistant"));
             }
         }
-
+        // label cannot be empty
+        if ( trim($this->table->tva_label??"")=="") {
+            $this->set_error("tva_label", _('Le label ne peut ĂȘtre vide'));
+        }
         if ($this->count_error()!=0)
             return false;
         return true;



reply via email to

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