Author: ralfbecker
New Revision: 25069
URL: http://www.egroupware.org/viewvc?rev=3D25069&view=3Drev
Log:
fixed not found tabledefinition if no app-name given and a search of the ta=
ble was requested (type in var-name)
Modified:
trunk/phpgwapi/inc/class.egw_db.inc.php
Modified: trunk/phpgwapi/inc/class.egw_db.inc.php
URL: http://www.egroupware.org/viewvc/trunk/phpgwapi/inc/class.egw_db.inc.p=
hp?rev=3D25069&r1=3D25068&r2=3D25069&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
— trunk/phpgwapi/inc/class.egw_db.inc.php (original)
+++ trunk/phpgwapi/inc/class.egw_db.inc.php Mon Mar 10 22:32:13 2008
@@ -1417,11 +1417,11 @@
{
if ($app =3D=3D=3D true && $table && isset($GLOBALS[‘egw_info’][‘apps’]))
{
-
foreach($GLOBALS['egw_info']['apps'] as $app =3D> $app_data) -
{ -
if (isset($data['table_defs'][$table])) -
{ -
return $data['table_defs'][$table];
-
foreach($GLOBALS['egw_info']['apps'] as $app =3D> &$app_data) -
{ -
if (isset($app_data['table_defs'][$table])) -
{ -
return $app_data['table_defs'][$table]; } } $app =3D false;
@@ -1452,8 +1452,10 @@
}
if ($table && (!$this->app_data[‘table_defs’] || !isset($this->app_data[=
‘table_defs’][$table])))
{
-
if ($this->Debug) echo "<p>!!!get_table_definitions($app,$table) failed=
!!!
\n";return False;
}
-
if ($this->Debug) echo "<p>get_table_definitions($app,$table) succeeded<=
/p>\n";
return $table ? $this->app_data[‘table_defs’][$table] : $this->app_data[=
‘table_defs’];
}
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft® Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs