[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 08/86: CFGMENU : bug cannot update menu
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 08/86: CFGMENU : bug cannot update menu |
Date: |
Thu, 19 Sep 2024 02:41:47 -0400 (EDT) |
sparkyx pushed a commit to branch unstable
in repository noalyss.
commit ab67c4bcb507fea38e4d00e76411d04346b3ee75
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Sep 1 22:01:00 2024 +0200
CFGMENU : bug cannot update menu
---
include/class/menu_ref.class.php | 4 +++-
include/menu.inc.php | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/class/menu_ref.class.php b/include/class/menu_ref.class.php
index aab3b5f0c..f86c0c0a0 100644
--- a/include/class/menu_ref.class.php
+++ b/include/class/menu_ref.class.php
@@ -45,8 +45,10 @@ class Menu_Ref extends Menu_Ref_SQL
{
throw new Exception(_("le code ne peut être vide"));
}
+
$this->format_code();
- if ( $this->cn->get_value("select count(*) from menu_ref where
me_code=$1",array($this->me_code)) > 0)
+ if (isset ($_POST['create_menu'])
+ && $this->cn->get_value("select count(*) from menu_ref where
me_code=$1",array($this->me_code)) > 0)
throw new Exception ('Doublon');
if (trim($this->me_code)=='')
throw new Exception ('Ce menu existe déjà');
diff --git a/include/menu.inc.php b/include/menu.inc.php
index 47b626611..0dbdd3c06 100644
--- a/include/menu.inc.php
+++ b/include/menu.inc.php
@@ -86,6 +86,7 @@ if ( isset($_POST['create_menu'])||
isset($_POST['modify_menu']))
{
if (isset($_POST['create_menu']))
{
+ if ($menu_ref->verify() == 0)
$menu_ref->insert();
}
elseif (isset($_POST['modify_menu']))
- [Noalyss-commit] [noalyss] 57/86: Bug : when only one extension, it fails, (continued)
- [Noalyss-commit] [noalyss] 57/86: Bug : when only one extension, it fails, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 50/86: Translation, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 63/86: Bug : when only one extension, it fails, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 70/86: Cosmetic, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 82/86: Change color border, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 83/86: Change color border, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 81/86: Cosmetic : menu and module , animate, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 86/86: Cosmetic g_failed, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 18/86: Task #0002376: Numéro de pièce, remplissage avec des 0 code : renommage de set_pj par update_receipt, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 47/86: Improve : creation db , mod1 , mod2 and account_repository remove the alter table disable all triggers, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 08/86: CFGMENU : bug cannot update menu,
dwm <=
- [Noalyss-commit] [noalyss] 54/86: Translation Cosmetic: without z-index, the class col is behind the autocomplete div in COMPANY Fix Create user , password not set Improve : creation db , mod1 , mod2 and account_repository remove the alter table disable all triggers Bug : some db doesn't have the view v_quant_detail Fix bug CSV for P1TVA , wrong header, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 52/86: Translation Cosmetic: without z-index, the class col is behind the autocomplete div in COMPANY Fix Create user , password not set Improve : creation db , mod1 , mod2 and account_repository remove the alter table disable all triggers Bug : some db doesn't have the view v_quant_detail Fix bug CSV for P1TVA , wrong header, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 21/86: Task #0002376: Numéro de pièce, remplissage avec des 0 code : renommage de set_pj par update_receipt, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 45/86: Cosmetic: without z-index, the class col is behind the autocomplete div in COMPANY, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 38/86: Fix bug CSV for P1TVA , wrong header, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 25/86: Cosmetic add inner_box2, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 36/86: RECONCILE : VAT ND not in account, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 39/86: Fix bug CSV for P1TVA , wrong header, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 17/86: C0MENU : bug javascript Uniquement note de débit ou crédit ne fonctionne pas, dwm, 2024/09/19
- [Noalyss-commit] [noalyss] 44/86: Cosmetic: without z-index, the class col is behind the autocomplete div in COMPANY, dwm, 2024/09/19
- Prev by Date:
[Noalyss-commit] [noalyss] 47/86: Improve : creation db , mod1 , mod2 and account_repository remove the alter table disable all triggers
- Next by Date:
[Noalyss-commit] [noalyss] 54/86: Translation Cosmetic: without z-index, the class col is behind the autocomplete div in COMPANY Fix Create user , password not set Improve : creation db , mod1 , mod2 and account_repository remove the alter table disable all triggers Bug : some db doesn't have the view v_quant_detail Fix bug CSV for P1TVA , wrong header
- Previous by thread:
[Noalyss-commit] [noalyss] 47/86: Improve : creation db , mod1 , mod2 and account_repository remove the alter table disable all triggers
- Next by thread:
[Noalyss-commit] [noalyss] 54/86: Translation Cosmetic: without z-index, the class col is behind the autocomplete div in COMPANY Fix Create user , password not set Improve : creation db , mod1 , mod2 and account_repository remove the alter table disable all triggers Bug : some db doesn't have the view v_quant_detail Fix bug CSV for P1TVA , wrong header
- Index(es):