Skip to content
Snippets Groups Projects
Commit 39eaaa1a authored by Pegane Nestor's avatar Pegane Nestor
Browse files

RESOLVE CONFLICT

parent c775c2ab
No related branches found
No related tags found
No related merge requests found
...@@ -89,9 +89,6 @@ if (!defined('_ENTITY_IS_RELATED')) { ...@@ -89,9 +89,6 @@ if (!defined('_ENTITY_IS_RELATED')) {
if (!defined('_TYPE')) { if (!defined('_TYPE')) {
define('_TYPE', 'Type'); define('_TYPE', 'Type');
} }
if (!defined('_ENTITY_ALREADY_EXISTS')) {
define('_ENTITY_ALREADY_EXISTS', 'Entity already exists');
}
/*************************** Users - Entites management *****************/ /*************************** Users - Entites management *****************/
if (!defined('_ENTITY_USER_DESC')) { if (!defined('_ENTITY_USER_DESC')) {
......
...@@ -89,9 +89,6 @@ if (!defined('_ENTITY_IS_RELATED')) { ...@@ -89,9 +89,6 @@ if (!defined('_ENTITY_IS_RELATED')) {
if (!defined('_TYPE')) { if (!defined('_TYPE')) {
define('_TYPE', 'Type'); define('_TYPE', 'Type');
} }
if (!defined('_ENTITY_ALREADY_EXISTS')) {
define('_ENTITY_ALREADY_EXISTS', 'Cette entité existe déjà');
}
/*************************** Users - Entites management *****************/ /*************************** Users - Entites management *****************/
if (!defined('_ENTITY_USER_DESC')) { if (!defined('_ENTITY_USER_DESC')) {
......
...@@ -72,7 +72,11 @@ class ContactGroupController ...@@ -72,7 +72,11 @@ class ContactGroupController
$user = UserModel::getByUserId(['select' => ['id'], 'userId' => $GLOBALS['userId']]); $user = UserModel::getByUserId(['select' => ['id'], 'userId' => $GLOBALS['userId']]);
$existingGroup = ContactGroupModel::get(['select' => [1], 'where' => ['label = ?', 'owner = ?'], 'data' => [$data['label'], $user['id']]]); $existingGroup = ContactGroupModel::get(['select' => [1], 'where' => ['label = ?', 'owner = ?'], 'data' => [$data['label'], $user['id']]]);
if (!empty($existingGroup)) { if (!empty($existingGroup)) {
<<<<<<< c775c2ab5ad5d20ed7714655e22355e405842786
return $response->withStatus(400)->withJson(['errors' => _CONTACTS_GROUP_LABEL_EXISTS]); return $response->withStatus(400)->withJson(['errors' => _CONTACTS_GROUP_LABEL_EXISTS]);
=======
return $response->withStatus(400)->withJson(['errors' => _CONTACT_GROUP_LABEL_ALREADY_EXISTS]);
>>>>>>> FEAT #7699 added new lang var
} }
$data['public'] = $data['public'] ? 'true' : 'false'; $data['public'] = $data['public'] ? 'true' : 'false';
......
...@@ -171,7 +171,7 @@ class EntityController ...@@ -171,7 +171,7 @@ class EntityController
$existingEntity = EntityModel::getById(['entityId' => $data['entity_id'], 'select' => [1]]); $existingEntity = EntityModel::getById(['entityId' => $data['entity_id'], 'select' => [1]]);
if (!empty($existingEntity)) { if (!empty($existingEntity)) {
return $response->withStatus(400)->withJson(['errors' => _ENTITY_ALREADY_EXISTS]); return $response->withStatus(400)->withJson(['errors' => _ENTITY_ID_ALREADY_EXISTS]);
} }
EntityModel::create($data); EntityModel::create($data);
......
...@@ -71,7 +71,7 @@ class ParameterController ...@@ -71,7 +71,7 @@ class ParameterController
$parameter = ParameterModel::getById(['id' => $data['id']]); $parameter = ParameterModel::getById(['id' => $data['id']]);
if (!empty($parameter)) { if (!empty($parameter)) {
return $response->withStatus(400)->withJson(['errors' => 'Parameter already exists']); return $response->withStatus(400)->withJson(['errors' => _PARAMETER_ID_ALREADY_EXISTS]);
} }
ParameterModel::create($data); ParameterModel::create($data);
......
...@@ -34,8 +34,13 @@ define('_CONTACTS_GROUP_ADDED', 'Contacts group added'); ...@@ -34,8 +34,13 @@ define('_CONTACTS_GROUP_ADDED', 'Contacts group added');
define('_CONTACTS_GROUP_UPDATED', 'Contacts group updated'); define('_CONTACTS_GROUP_UPDATED', 'Contacts group updated');
define('_CONTACTS_GROUP_DELETED', 'Contacts group deleted'); define('_CONTACTS_GROUP_DELETED', 'Contacts group deleted');
define('_CONTACTS_GROUP_LIST_ADDED', 'Add contacts for group'); define('_CONTACTS_GROUP_LIST_ADDED', 'Add contacts for group');
<<<<<<< c775c2ab5ad5d20ed7714655e22355e405842786
define('_CONTACTS_GROUP_LIST_DELETED', 'Delete a contact for group'); define('_CONTACTS_GROUP_LIST_DELETED', 'Delete a contact for group');
define('_CONTACTS_GROUP_LABEL_EXISTS', 'Group with this label already exists'); define('_CONTACTS_GROUP_LABEL_EXISTS', 'Group with this label already exists');
=======
define('_CONTACTS_GROUP_LIST_DELETED', 'Delete contacts for group');
define('_CONTACT_GROUP_LABEL_ALREADY_EXISTS', 'Group with this label already exists');
>>>>>>> FEAT #7699 added new lang var
define('_DELETE_NOTIFICATIONS', 'Notification deleted'); define('_DELETE_NOTIFICATIONS', 'Notification deleted');
define('_DEST_USER', 'Recipient'); define('_DEST_USER', 'Recipient');
define('_DOCTYPE_FIRSTLEVEL_ADDED', 'Doctype first level added'); define('_DOCTYPE_FIRSTLEVEL_ADDED', 'Doctype first level added');
...@@ -48,6 +53,7 @@ define('_DOCUMENT_NOT_FOUND', 'Document not found'); ...@@ -48,6 +53,7 @@ define('_DOCUMENT_NOT_FOUND', 'Document not found');
define('_ENTITY_CREATION', 'Entity creation'); define('_ENTITY_CREATION', 'Entity creation');
define('_ENTITY_MODIFICATION', 'Entity modification'); define('_ENTITY_MODIFICATION', 'Entity modification');
define('_ENTITY_SUPPRESSION', 'Entity suppression'); define('_ENTITY_SUPPRESSION', 'Entity suppression');
define('_ENTITY_ID_ALREADY_EXISTS', 'Entity already exists');
define('_ID', 'Identifier'); define('_ID', 'Identifier');
define('_ID_TO_DISPLAY', 'res_id'); define('_ID_TO_DISPLAY', 'res_id');
define('_INVALID_CLAUSE', 'Clause is not valid'); define('_INVALID_CLAUSE', 'Clause is not valid');
...@@ -62,6 +68,7 @@ define('_NOTIFICATION_SCRIPT_ADDED', 'Script created'); ...@@ -62,6 +68,7 @@ define('_NOTIFICATION_SCRIPT_ADDED', 'Script created');
define('_PARAMETER_CREATION', 'Parameter creation'); define('_PARAMETER_CREATION', 'Parameter creation');
define('_PARAMETER_MODIFICATION', 'Parameter modification'); define('_PARAMETER_MODIFICATION', 'Parameter modification');
define('_PARAMETER_SUPPRESSION', 'Parameter suppression'); define('_PARAMETER_SUPPRESSION', 'Parameter suppression');
define('_PARAMETER_ID_ALREADY_EXISTS', 'Parameter already exists');
define('_PRIORITY_CREATION', 'Priority creation'); define('_PRIORITY_CREATION', 'Priority creation');
define('_PRIORITY_MODIFICATION', 'Priority modification'); define('_PRIORITY_MODIFICATION', 'Priority modification');
define('_PRIORITY_SUPPRESSION', 'Priority suppression'); define('_PRIORITY_SUPPRESSION', 'Priority suppression');
......
...@@ -34,8 +34,13 @@ define('_CONTACTS_GROUP_ADDED', 'Groupe de contacts ajouté'); ...@@ -34,8 +34,13 @@ define('_CONTACTS_GROUP_ADDED', 'Groupe de contacts ajouté');
define('_CONTACTS_GROUP_UPDATED', 'Groupe de contacts modifié'); define('_CONTACTS_GROUP_UPDATED', 'Groupe de contacts modifié');
define('_CONTACTS_GROUP_DELETED', 'Groupe de contacts supprimé'); define('_CONTACTS_GROUP_DELETED', 'Groupe de contacts supprimé');
define('_CONTACTS_GROUP_LIST_ADDED', 'Ajout de contacts dans le groupe'); define('_CONTACTS_GROUP_LIST_ADDED', 'Ajout de contacts dans le groupe');
<<<<<<< c775c2ab5ad5d20ed7714655e22355e405842786
define('_CONTACTS_GROUP_LIST_DELETED', 'Suppression d\'un contact dans le groupe'); define('_CONTACTS_GROUP_LIST_DELETED', 'Suppression d\'un contact dans le groupe');
define('_CONTACTS_GROUP_LABEL_EXISTS', 'Groupe de contacts avec le même label existe déjà'); define('_CONTACTS_GROUP_LABEL_EXISTS', 'Groupe de contacts avec le même label existe déjà');
=======
define('_CONTACTS_GROUP_LIST_DELETED', 'Suppression de contacts dans le groupe');
define('_CONTACT_GROUP_LABEL_ALREADY_EXISTS', 'Un groupe avec ce libellé existe déjà');
>>>>>>> FEAT #7699 added new lang var
define('_DELETE_NOTIFICATIONS', 'Notification supprimée'); define('_DELETE_NOTIFICATIONS', 'Notification supprimée');
define('_DEST_USER', 'Destinataire'); define('_DEST_USER', 'Destinataire');
define('_DOCTYPE_FIRSTLEVEL_ADDED', 'Chemise ajoutée'); define('_DOCTYPE_FIRSTLEVEL_ADDED', 'Chemise ajoutée');
...@@ -48,6 +53,7 @@ define('_DOCUMENT_NOT_FOUND', 'Document introuvable'); ...@@ -48,6 +53,7 @@ define('_DOCUMENT_NOT_FOUND', 'Document introuvable');
define('_ENTITY_CREATION', 'Création entité'); define('_ENTITY_CREATION', 'Création entité');
define('_ENTITY_MODIFICATION', 'Modification entité'); define('_ENTITY_MODIFICATION', 'Modification entité');
define('_ENTITY_SUPPRESSION', 'Suppression entité'); define('_ENTITY_SUPPRESSION', 'Suppression entité');
define('_ENTITY_ID_ALREADY_EXISTS', 'Cette entité existe déjà');
define('_ID', 'Identifiant'); define('_ID', 'Identifiant');
define('_ID_TO_DISPLAY', 'res_id'); define('_ID_TO_DISPLAY', 'res_id');
define('_INVALID_CLAUSE', 'Clause non valide'); define('_INVALID_CLAUSE', 'Clause non valide');
...@@ -62,6 +68,7 @@ define('_NOTIFICATION_SCRIPT_ADDED', 'Le script de la notification a été cré ...@@ -62,6 +68,7 @@ define('_NOTIFICATION_SCRIPT_ADDED', 'Le script de la notification a été cré
define('_PARAMETER_CREATION', 'Création paramètre'); define('_PARAMETER_CREATION', 'Création paramètre');
define('_PARAMETER_MODIFICATION', 'Modification paramètre'); define('_PARAMETER_MODIFICATION', 'Modification paramètre');
define('_PARAMETER_SUPPRESSION', 'Suppression paramètre'); define('_PARAMETER_SUPPRESSION', 'Suppression paramètre');
define('_PARAMETER_ID_ALREADY_EXISTS', 'Ce paramètre existe déjà');
define('_PRIORITY_CREATION', 'Création priorité'); define('_PRIORITY_CREATION', 'Création priorité');
define('_PRIORITY_MODIFICATION', 'Modification priorité'); define('_PRIORITY_MODIFICATION', 'Modification priorité');
define('_PRIORITY_SUPPRESSION', 'Suppression priorité'); define('_PRIORITY_SUPPRESSION', 'Suppression priorité');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment