From 8fd9de7d1d8c96ddf22cf5228023d361de846943 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Wed, 2 Sep 2009 04:26:00 +0000 Subject: [PATCH] BUGFIX: fixed typo with get_by_id being called rather then get() --- code/migration/UserFormsMigrationTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/migration/UserFormsMigrationTask.php b/code/migration/UserFormsMigrationTask.php index 45858e2..7dc1481 100644 --- a/code/migration/UserFormsMigrationTask.php +++ b/code/migration/UserFormsMigrationTask.php @@ -29,7 +29,7 @@ class UserFormsMigrationTask extends MigrationTask { */ function run($request) { // load the forms - $forms = DataObject::get_by_id("UserDefinedForm"); + $forms = DataObject::get("UserDefinedForm"); if(!$forms) return; echo "Proceeding to update ". $forms->Count() . " Forms to ensure proper structure
";