From fa86e4d86bc6637f72a0f8a959e532c7aefbe6d5 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Mon, 9 Dec 2024 14:30:07 +0100 Subject: [PATCH] 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;