BUGFIX: fixed typo with get_by_id being called rather then get()

This commit is contained in:
Will Rossiter 2009-09-02 04:26:00 +00:00
parent ca6f4b296c
commit 8fd9de7d1d

View File

@ -29,7 +29,7 @@ class UserFormsMigrationTask extends MigrationTask {
*/ */
function run($request) { function run($request) {
// load the forms // load the forms
$forms = DataObject::get_by_id("UserDefinedForm"); $forms = DataObject::get("UserDefinedForm");
if(!$forms) return; if(!$forms) return;
echo "Proceeding to update ". $forms->Count() . " Forms to ensure proper structure<br />"; echo "Proceeding to update ". $forms->Count() . " Forms to ensure proper structure<br />";