mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
BUGFIX: fixed typo with get_by_id being called rather then get()
This commit is contained in:
parent
ca6f4b296c
commit
8fd9de7d1d
@ -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 />";
|
||||||
|
Loading…
Reference in New Issue
Block a user