bugphpGroupWare - Bugs: bug #3376, Wrong database relation


You are not allowed to post comments on this tracker with your current authentication level.

bug #3376: Wrong database relation

Submitted by:  Kai Hofmann <powerstat>
Submitted on:  Tue 29 Apr 2003 09:09:26 AM UTC  
Category:  projects Item Group:  None
Severity:  3 - Normal Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  Bettina Gille <ceb> Open/Closed:  Open
Component Version:  None Operating System:  None
Reproducibility:  None Planned Release:
Fixed Release: 

Tue 29 Apr 2003 09:09:26 AM UTC, original submission:  

This join statement is wrong - there is no connection between the two tables - should be:
"phpgw_p_projects.id = join phpgw_p_hours.project_id WHERE "

$this->db->query("SELECT title,num,phpgw_p_projects.id as id FROM phpgw_p_projects $join phpgw_p_hours ON "
. "phpgw_p_hours.employee='" . $account_id . "' GROUP BY title,num,phpgw_p_projects.id",__LINE__,__FILE__);

Kai Hofmann <powerstat>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-07-15 skwashd Planned ReleaseNone =>
2003-04-30 skwashd Assigned toNone => NA

Back to the top

Powered by Savane 3.5