Bonjour,

Veuillez trouver ci-joint un patch de correction pour l'affichage de la liste 
de la rubrique 'Mes Projets' qui affiche l'ensemble des projets par défaut dans 
la version 3.0.0 de Dolibarr, au lieu de seulement nos projets.

Cordialement,
Mouillard Dimitri

--------------------------------------------
Dimitri Mouilllard
Développeur
Teclib' -  5, rue Jean Perrin, 28600 Luisant
Mail : [email protected]
diff -BNaur --exclude=CVS --exclude='*.patch' --exclude='.#*' --exclude='*~' --exclude='*.rej' --exclude='*.orig' --exclude='*.bak' --exclude=conf.php --exclude=documents htdocs/projet/liste.php htdocs/projet/liste.php
--- htdocs/projet/liste.php	2011-01-17 02:46:46.000000000 +0100
+++ htdocs/projet/liste.php	2011-04-18 09:31:44.000000000 +0200
@@ -75,7 +75,7 @@
 $sql.= " FROM ".MAIN_DB_PREFIX."projet as p";
 $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s on p.fk_soc = s.rowid";
 $sql.= " WHERE p.entity = ".$conf->entity;
-if (! $user->rights->projet->all->lire) $sql.= " AND p.rowid IN (".$projectsListId.")";
+if ($mine) $sql.= " AND p.rowid IN (".$projectsListId.")";
 // No need to check company, as filtering of projects must be done by getProjectsAuthorizedForUser
 //if ($socid || ! $user->rights->societe->client->voir)	$sql.= "  AND (p.fk_soc IS NULL OR p.fk_soc = 0 OR p.fk_soc = ".$socid.")";
 if ($socid) $sql.= "  AND (p.fk_soc IS NULL OR p.fk_soc = 0 OR p.fk_soc = ".$socid.")";
_______________________________________________
Dolibarr-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Répondre à