[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 37/323: Task #1518:Modèle de Catégorie de fi
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 37/323: Task #1518:Modèle de Catégorie de fiche : ajout sécurité + attribut minimum |
Date: |
Wed, 14 Mar 2018 17:38:14 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 2697943da5964022952a113370430af766977d17
Author: Dany De Bontridder <address@hidden>
Date: Tue Jan 9 17:59:19 2018 +0100
Task #1518:Modèle de Catégorie de fiche : ajout sécurité + attribut minimum
---
include/ajax/ajax_template_cat_card.php | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/include/ajax/ajax_template_cat_card.php
b/include/ajax/ajax_template_cat_card.php
index d5625c5..05ad1c1 100644
--- a/include/ajax/ajax_template_cat_card.php
+++ b/include/ajax/ajax_template_cat_card.php
@@ -29,8 +29,12 @@ if (!defined('ALLOWED'))
require_once NOALYSS_INCLUDE."/class/template_card_category.class.php";
/**
- * @todo ajax_template_cat_card add security
+ * ajax_template_cat_card add security , accessible only for CFGCARDCAT
*/
+if ( $g_user->check_module ("CFGCARDCAT")==0)
+{
+ return;
+}
$http=new HttpInput();
$action=$http->request("action");
@@ -55,6 +59,8 @@ switch ($action)
case "save":
header('Content-type: text/xml; charset=UTF-8');
echo $cat->ajax_save()->saveXML();
+ if ( $p_id == -1 )
+ $cat->add_mandatory_attr();
return;
break;
case "delete":
- [Noalyss-commit] [noalyss] 22/323: code rewriting : use of title_box + button close for Card Detail, (continued)
- [Noalyss-commit] [noalyss] 22/323: code rewriting : use of title_box + button close for Card Detail, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 28/323: Task #1466 : add a receipt number if paid by an ODS ledger, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 21/323: code rewriting : use of title_box + button close for Card Detail, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 26/323: Task#1461 : nombre de fiches dans catégorie, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 29/323: Task #1466 : add a receipt number if paid by an ODS ledger (Sale & Sold), Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 32/323: documentation, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 30/323: Task #1326 & #1512 = ajout détail extourne, libellé, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 39/323: Bug : profile_id was missing, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 35/323: Bug in Manage_Table_SQL when an exception is thrown from ajax_input, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 44/323: Misplacing of box due to a change in the id name, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 37/323: Task #1518:Modèle de Catégorie de fiche : ajout sécurité + attribut minimum,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 31/323: documentation, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 33/323: documentation, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 36/323: Bug in Manage_Table_SQL when an exception is thrown from ajax_input, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 41/323: Category of card : dialog box too large for screen cannot be viewed, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 40/323: Category of card : cannot be removed due to FK in attr_min, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 42/323: Manage_Table dialog box draggable, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 46/323: Mix between odd and even row, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 23/323: Task #1485 : by default the dialog box are fixed but can be moved, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 51/323: 0001523: Dans HISTO , Operation History (HISTO) , tiers is clickable, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 50/323: task #0001513: Détail fiche : ajout bouton effacer, Dany De Bontridder, 2018/03/14