bugphpGroupWare - Bugs: bug #14214, Database object bug in...

 
 

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

bug #14214: Database object bug in setup/lang.php

Submitter:  None
Submitted:  Thu 18 Aug 2005 10:45:32 AM UTC
   
 
Category:  API - Setup Item Group:  0.9.16.005
Severity:  3 - Normal Priority:  7 - High
Status:  Invalid Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  SVN Operating System:  None
Reproducibility:  Every Time Planned Release:  None
Fixed Release: 

Thu 18 Aug 2005 11:25:54 AM UTC, comment #1: 

Wrong!

Login so we know who is filing invalid bug reports or expect all of your reports to be closed without further investigation.

Dave Hall <skwashd>
Group administrator
Thu 18 Aug 2005 10:45:32 AM UTC, original submission:  

$db2 = $GLOBALS['phpgw_setup']->db;
[..]
while ($GLOBALS['phpgw_setup']->db->next_record())
{
[...] if(strtoupper($GLOBALS['phpgw_setup']->db->f('available')) != 'YES')
{
$db2->query("UPDATE phpgw_languages SET available = 'Yes' "

[...]


Because
$GLOBALS['phpgw_setup']->db and $db2 are equal here,
the Update statement will break the result set of the select over which the while loop iterates.
Result: Only the first language will be displayed in the setups language dialog.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-08-18 skwashd StatusNone Invalid
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code