mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
FIX: escape columns and tables for postgres
This commit is contained in:
parent
775eb66053
commit
55a5187f79
@ -130,8 +130,8 @@ class UserDefinedForm extends Page {
|
||||
|
||||
// attach every column to the print view from
|
||||
$columns = SubmittedFormField::get()
|
||||
->where("SubmittedForm.ParentID = '$this->ID'")
|
||||
->leftJoin('SubmittedForm', 'SubmittedFormField.ParentID = SubmittedForm.ID')
|
||||
->where("\"SubmittedForm\".\"ParentID\" = '$this->ID'")
|
||||
->leftJoin('SubmittedForm', '"SubmittedFormField"."ParentID" = "SubmittedForm"."ID"')
|
||||
->map('Name', 'Title');
|
||||
|
||||
$columns = $columns->toArray();
|
||||
|
@ -38,9 +38,6 @@ class UserDefinedFormTest extends FunctionalTest {
|
||||
}
|
||||
|
||||
function testGetCMSFields() {
|
||||
// ensure all the tabs are present.
|
||||
// @todo a common bug with this is translations messing up the tabs.
|
||||
// @todo only logic we should check for is that the tablelistfield filter
|
||||
$this->logInWithPermission('ADMIN');
|
||||
$form = $this->objFromFixture('UserDefinedForm', 'basic-form-page');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user