From 465d96958f04d6d29df242487197f0c30112f4a8 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 7 Apr 2009 05:19:20 +0000 Subject: [PATCH] UnitTestCaseUsingDatabase: fix bug with install_one_table_from_xmldb_file The bug prevented you creating the first table from an install.xml file --- lib/ddl/database_manager.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ddl/database_manager.php b/lib/ddl/database_manager.php index 9453562305..b048f8d148 100644 --- a/lib/ddl/database_manager.php +++ b/lib/ddl/database_manager.php @@ -432,6 +432,8 @@ class database_manager { if (is_null($targettable)) { throw new ddl_exception('ddlunknowntable', null, 'The table ' . $tablename . ' is not defined in file ' . $file); } + $targettable->setNext(NULL); + $targettable->setPrevious(NULL); $tempstructure = new xmldb_structure('temp'); $tempstructure->addTable($targettable); -- 2.39.5