From f36f1a99a008b5c3fe5357634a5dfe40267beacf Mon Sep 17 00:00:00 2001 From: Cameron Grant Date: Mon, 31 Mar 2014 20:43:39 +1300 Subject: [PATCH] Actually last one won't work Signed-off-by: Cameron Grant --- code/model/UserDefinedForm.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/model/UserDefinedForm.php b/code/model/UserDefinedForm.php index d2058e3..d64fc52 100755 --- a/code/model/UserDefinedForm.php +++ b/code/model/UserDefinedForm.php @@ -118,9 +118,8 @@ class UserDefinedForm extends Page { SELECT "SubmittedFormField"."Name", "SubmittedFormField"."Title" FROM "SubmittedFormField" LEFT JOIN "SubmittedForm" ON "SubmittedForm"."ID" = "SubmittedFormField"."ParentID" -LEFT JOIN "EditableFormField_Live" ON "EditableFormField_Live"."ParentID" = "SubmittedForm"."ParentID" WHERE "SubmittedForm"."ParentID" = '$parentID' -ORDER BY "EditableFormField_Live"."Sort" ASC +ORDER BY "SubmittedFormField"."ID" ASC SQL; $columns = DB::query($columnSQL)->map();