From 99dc3598de182fccdb1bdc83fa3bc06e471f3f46 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@destailleur.fr>
Date: Tue, 6 May 2014 23:27:44 +0200
Subject: [PATCH] Fix: [ bug #1364 ] Duplicate Id on permission

---
 htdocs/core/modules/modDocument.class.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/htdocs/core/modules/modDocument.class.php b/htdocs/core/modules/modDocument.class.php
index 431265dade2..5b6937e9ee0 100644
--- a/htdocs/core/modules/modDocument.class.php
+++ b/htdocs/core/modules/modDocument.class.php
@@ -42,7 +42,7 @@ class modDocument extends DolibarrModules
 	function __construct($db)
 	{
 		$this->db = $db;
-		$this->numero = 51;
+		$this->numero = 1510;
 
 		$this->family = "technic";
 		// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
@@ -80,14 +80,14 @@ class modDocument extends DolibarrModules
 
 		$r=0;
 
-		$this->rights[$r][0] = 511;
+		$this->rights[$r][0] = 1511;
 		$this->rights[$r][1] = 'Lire les documents';
 		$this->rights[$r][2] = 'r';
 		$this->rights[$r][3] = 1;
 		$this->rights[$r][4] = 'lire';
 
 		$r++;
-		$this->rights[$r][0] = 512;
+		$this->rights[$r][0] = 1512;
 		$this->rights[$r][1] = 'Supprimer les documents clients';
 		$this->rights[$r][2] = 'd';
 		$this->rights[$r][3] = 0;
-- 
GitLab