Skip to content

Commit

Permalink
Merge pull request #65 from DeBortoliWines/dbw_pd_update_syntax_from_…
Browse files Browse the repository at this point in the history
…devel

more fixes for old-style assign by reference in projectdesigner
  • Loading branch information
ajdonnison committed Jul 17, 2019
2 parents 90d976f + d7e295c commit 3f2ca23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/projectdesigner/vw_projecttask.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
}
$showIncomplete = $AppUI->getState('TaskListShowIncomplete', 0);

$project =& new CProject;
$project = new CProject;
// $allowedProjects = $project->getAllowedRecords($AppUI->user_id, 'project_id, project_name');
$allowedProjects = $project->getAllowedSQL($AppUI->user_id);
$working_hours = ($dPconfig['daily_working_hours']?$dPconfig['daily_working_hours']:8);
Expand Down Expand Up @@ -228,7 +228,7 @@
if (count($allowedProjects)) {
$q->addWhere($allowedProjects);
}
$obj =& new CTask;
$obj = new CTask;
$allowedTasks = $obj->getAllowedSQL($AppUI->user_id, 't.task_id');
if ( count($allowedTasks)) {
$q->addWhere($allowedTasks);
Expand Down

0 comments on commit 3f2ca23

Please sign in to comment.