Actually last one won't work

Signed-off-by: Cameron Grant <sasky.creative@gmail.com>
This commit is contained in:
Cameron Grant 2014-03-31 20:43:39 +13:00
parent 4f8a0dc5cf
commit f36f1a99a0

View File

@ -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();