From d6d62953d418faaec020daf4b4db9ab3b92469f4 Mon Sep 17 00:00:00 2001
From: Damien <damien.burel@maarch.org>
Date: Mon, 12 Feb 2018 14:54:57 +0100
Subject: [PATCH] FEAT #58 Explicit histoy for basket

---
 src/app/basket/controllers/BasketController.php | 6 +++---
 src/core/lang/lang-en.php                       | 3 +++
 src/core/lang/lang-fr.php                       | 3 +++
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/app/basket/controllers/BasketController.php b/src/app/basket/controllers/BasketController.php
index bc04a607d99..edb756b7a5f 100644
--- a/src/app/basket/controllers/BasketController.php
+++ b/src/app/basket/controllers/BasketController.php
@@ -404,7 +404,7 @@ class BasketController
             'tableName' => 'baskets',
             'recordId'  => $aArgs['id'],
             'eventType' => 'UP',
-            'info'      => _BASKET_MODIFICATION . " : {$aArgs['id']}",
+            'info'      => _BASKET_GROUP_CREATION . " : {$aArgs['id']}",
             'moduleId'  => 'basket',
             'eventId'   => 'basketModification',
         ]);
@@ -482,7 +482,7 @@ class BasketController
             'tableName' => 'baskets',
             'recordId'  => $aArgs['id'],
             'eventType' => 'UP',
-            'info'      => _BASKET_MODIFICATION . " : {$aArgs['id']}",
+            'info'      => _BASKET_GROUP_MODIFICATION . " : {$aArgs['id']}",
             'moduleId'  => 'basket',
             'eventId'   => 'basketModification',
         ]);
@@ -506,7 +506,7 @@ class BasketController
             'tableName' => 'baskets',
             'recordId'  => $aArgs['id'],
             'eventType' => 'UP',
-            'info'      => _BASKET_MODIFICATION . " : {$aArgs['id']}",
+            'info'      => _BASKET_GROUP_SUPPRESSION . " : {$aArgs['id']}",
             'moduleId'  => 'basket',
             'eventId'   => 'basketModification',
         ]);
diff --git a/src/core/lang/lang-en.php b/src/core/lang/lang-en.php
index 0e04c34b2e0..de264706dca 100644
--- a/src/core/lang/lang-en.php
+++ b/src/core/lang/lang-en.php
@@ -20,6 +20,9 @@ define('_ALREADY_EXISTS', 'already exists');
 define('_BASKET_CREATION', 'Basket creation');
 define('_BASKET_MODIFICATION', 'Basket modification');
 define('_BASKET_SUPPRESSION', 'Basket suppression');
+define('_BASKET_GROUP_CREATION', 'Group added for basket');
+define('_BASKET_GROUP_MODIFICATION', 'Group updated for basket');
+define('_BASKET_GROUP_SUPPRESSION', 'Group deleted for basket');
 define('_BASKETS_SORT_MODIFICATION', 'Baskets order modification');
 define('_DELETE_NOTIFICATIONS', 'Notification deleted');
 define('_ENTITY_CREATION', 'Entity creation');
diff --git a/src/core/lang/lang-fr.php b/src/core/lang/lang-fr.php
index d2849a74e14..8acc32ff89d 100644
--- a/src/core/lang/lang-fr.php
+++ b/src/core/lang/lang-fr.php
@@ -20,6 +20,9 @@ define('_ALREADY_EXISTS', 'existe déjà');
 define('_BASKET_CREATION', 'Création bannette');
 define('_BASKET_MODIFICATION', 'Modification bannette');
 define('_BASKET_SUPPRESSION', 'Suppression bannette');
+define('_BASKET_GROUP_CREATION', 'Groupe ajouté pour bannette');
+define('_BASKET_GROUP_MODIFICATION', 'Groupe modifié pour bannette');
+define('_BASKET_GROUP_SUPPRESSION', 'Groupe supprimé pour bannette');
 define('_BASKETS_SORT_MODIFICATION', 'Modification ordre bannettes');
 define('_DELETE_NOTIFICATIONS', 'Notification supprimée');
 define('_ENTITY_CREATION', 'Création entité');
-- 
GitLab