Hi Nathan,
afaik workflow uses ADOdb direct, so you cant give it an egw_db object.
Maybe you can pass it a clone of $GLOBALS[‘egw’]->ADOdb
Ralf
Nathan Gray schrieb:
The workflow uses $GLOBALS[‘egw’]->ADOdb for its database access, and
one of the first things it does with MySQL is disconnect and reconnect
$GLOBALS[‘egw’]->db as mysqlt. Why $GLOBALS[‘egw’]->db instead of
the provided $db?
It also calls ADOdb functions, such as SelectLimit().
In trunk, trying to load an Instance gives:
Invalid db object passed to BaseManager constructor
I switched class.workflow_instancemanager.inc.php Line 11 from:
parent::InstanceManager($GLOBALS[‘egw’]->ADOdb);
to:
parent::InstanceManager($GLOBALS[‘egw’]->db);
which avoids that error. I now get :
Fatal error: Call to undefined method egw_db::SelectLimit() in /var/
www/perpdevel/workflow/inc/engine/src/common/Base.php on line 158
however I can’t figure out why that function doesn’t exist, because
egw_db includes adodb/adodb.inc.php, which defines the function on
line 1097.
Nathan Gray
nathan at goarctic dot com
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-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers
–
Ralf Becker
eGroupWare Training & Support ==> http://www.egroupware-support.de
Outdoor Unlimited Training GmbH [www.outdoor-training.de]
Handelsregister HRB Kaiserslautern 3587
Geschäftsführer Birgit und Ralf Becker
Leibnizstr. 17, 67663 Kaiserslautern, Germany
Telefon +49 (0)631 31657-0
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-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers