[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 05/11: Esthestic Bug Forecast if there is no
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 05/11: Esthestic Bug Forecast if there is no category do not show the save btn |
Date: |
Wed, 31 Mar 2021 13:07:06 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit a4a833cee5c593743d154fe3eb560ce0c59ecf0c
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Mon Mar 29 16:01:09 2021 +0200
Esthestic Bug Forecast if there is no category do not show the save btn
---
include/class/forecast_item_mtable.class.php | 6 ++++++
include/template/forecast_item_mtable-input.php | 4 ----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/include/class/forecast_item_mtable.class.php
b/include/class/forecast_item_mtable.class.php
index cbb4364..8915401 100644
--- a/include/class/forecast_item_mtable.class.php
+++ b/include/class/forecast_item_mtable.class.php
@@ -161,7 +161,13 @@ class Forecast_Item_MTable extends Manage_Table_SQL
public function input()
{
$object=$this->get_table();
+ if ( $this->count_category() == 0 ) {
+ echo span(_("Sans catégorie il n'est pas possible d'ajouter de
nouveaux éléments"),'class="notice"');
+ return false;
+ }
+
require_once NOALYSS_TEMPLATE."/forecast_item_mtable-input.php";
+ return true;
}
/**
diff --git a/include/template/forecast_item_mtable-input.php
b/include/template/forecast_item_mtable-input.php
index b133da5..e1474a5 100644
--- a/include/template/forecast_item_mtable-input.php
+++ b/include/template/forecast_item_mtable-input.php
@@ -24,10 +24,6 @@
* \brief display, add, delete and modify forecast_item, All rows are in $a_row
* \see Forecast_Item_MTable::input
*/
-if ( $this->count_category() == 0 ) {
- echo span(_("Sans catégorie il n'est pas possible d'ajouter de nouveaux
éléments"),'class="notice"');
- return;
-}
$cn = $object->cn;
$forecast = new Forecast_SQL($cn, $this->get_forecast_id());
- [Noalyss-commit] [noalyss] branch master updated (b00558e -> eba5413), Dany De Bontridder, 2021/03/31
- [Noalyss-commit] [noalyss] 02/11: Harden security, Dany De Bontridder, 2021/03/31
- [Noalyss-commit] [noalyss] 03/11: calcy , bug position divide by 2 on certain circumstances, Dany De Bontridder, 2021/03/31
- [Noalyss-commit] [noalyss] 05/11: Esthestic Bug Forecast if there is no category do not show the save btn,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 06/11: 0001923: TAG : Date de paiement BALISE DATE_PAID, Dany De Bontridder, 2021/03/31
- [Noalyss-commit] [noalyss] 07/11: Task #0001928: Export ANC/ANCIMP/ANCHOP, Dany De Bontridder, 2021/03/31
- [Noalyss-commit] [noalyss] 08/11: Set version 9.0, Dany De Bontridder, 2021/03/31
- [Noalyss-commit] [noalyss] 09/11: Bug #1838 Souci décimales ventilation CA si automatique, Dany De Bontridder, 2021/03/31
- [Noalyss-commit] [noalyss] 04/11: Code #0001905: Champ pour Registre des Personnes Morales (RPM) Réécriture complete de COMPANY , ajout libres de paramètres, Dany De Bontridder, 2021/03/31
- [Noalyss-commit] [noalyss] 10/11: Improve #0001825: Détail opération : mise à jour date + logo 9, Dany De Bontridder, 2021/03/31
- [Noalyss-commit] [noalyss] 01/11: Task #0001735: Standardiser icone, Dany De Bontridder, 2021/03/31
- [Noalyss-commit] [noalyss] 11/11: Cosmetic, Dany De Bontridder, 2021/03/31