From b825b6e42c6270a9e9484d0eaf7b23b1098d7ec3 Mon Sep 17 00:00:00 2001 From: Stephen Shkardoon Date: Mon, 21 Mar 2016 23:45:17 +1300 Subject: [PATCH] Change CSV field export order to match form order - Fix #438 It will order the CSV field export to match the current order of the field. Previously, it would be sorted alphabetically. For any fields that are not in the current form, they'll be at the end of the CSV, sorted by Title again. --- code/model/UserDefinedForm.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/model/UserDefinedForm.php b/code/model/UserDefinedForm.php index e1abcdf..43ce9aa 100755 --- a/code/model/UserDefinedForm.php +++ b/code/model/UserDefinedForm.php @@ -165,11 +165,12 @@ class UserDefinedForm extends Page { // get a list of all field names and values used for print and export CSV views of the GridField below. $columnSQL = <<