diff --git a/code/model/submissions/SubmittedFileField.php b/code/model/submissions/SubmittedFileField.php index 557235a..44f8df8 100755 --- a/code/model/submissions/SubmittedFileField.php +++ b/code/model/submissions/SubmittedFileField.php @@ -55,7 +55,7 @@ class SubmittedFileField extends SubmittedFormField { if ($file = $this->UploadedFile()) { if (trim($file->getFilename(), '/') != trim(ASSETS_DIR, '/')) { - return $this->UploadedFile()->URL; + return $this->UploadedFile()->AbsoluteLink(); } } } diff --git a/code/model/submissions/SubmittedForm.php b/code/model/submissions/SubmittedForm.php index f026509..33527ce 100755 --- a/code/model/submissions/SubmittedForm.php +++ b/code/model/submissions/SubmittedForm.php @@ -65,9 +65,14 @@ class SubmittedForm extends DataObject $self->Values()->sort('Created', 'ASC') ); + $exportColumns = array( + 'Title' => 'Title', + 'ExportValue' => 'Value' + ); + $config = new GridFieldConfig(); $config->addComponent(new GridFieldDataColumns()); - $config->addComponent(new GridFieldExportButton()); + $config->addComponent(new GridFieldExportButton('after', $exportColumns)); $config->addComponent(new GridFieldPrintButton()); $values->setConfig($config);