Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
fe8ddda3
Commit
fe8ddda3
authored
14 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Bad filter
parent
97f15dde
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/lib/project.lib.php
+2
-3
2 additions, 3 deletions
htdocs/lib/project.lib.php
with
2 additions
and
3 deletions
htdocs/lib/project.lib.php
+
2
−
3
View file @
fe8ddda3
...
...
@@ -594,7 +594,7 @@ function clean_orphelins($db)
*
* @param $db
* @param $socid
* @param $projectsListId
* @param $projectsListId
Id of project i have permission on
* @param $mytasks Limited to task i am contact to
*/
function
print_projecttasks_array
(
$db
,
$socid
,
$projectsListId
,
$mytasks
=
0
)
...
...
@@ -628,8 +628,7 @@ function print_projecttasks_array($db, $socid, $projectsListId, $mytasks=0)
$sql
.
=
" LEFT JOIN "
.
MAIN_DB_PREFIX
.
"projet_task as t ON p.rowid = t.fk_projet"
;
}
$sql
.
=
" WHERE p.entity = "
.
$conf
->
entity
;
if
(
!
$user
->
rights
->
projet
->
all
->
lire
)
$sql
.
=
" AND p.rowid IN ("
.
$projectsListId
.
")"
;
//if ($socid || ! $user->rights->societe->client->voir) $sql.= " AND (p.fk_soc IS NULL OR p.fk_soc = 0 OR p.fk_soc = ".$socid.")";
$sql
.
=
" AND p.rowid IN ("
.
$projectsListId
.
")"
;
if
(
$socid
)
$sql
.
=
" AND (p.fk_soc IS NULL OR p.fk_soc = 0 OR p.fk_soc = "
.
$socid
.
")"
;
if
(
$mytasks
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment