mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
Update FieldEditor.php
This commit is contained in:
parent
06ad657f6c
commit
a6400dcfd0
@ -234,9 +234,9 @@ class FieldEditor extends FormField {
|
|||||||
|
|
||||||
$sqlQuery = new SQLQuery();
|
$sqlQuery = new SQLQuery();
|
||||||
$sqlQuery = $sqlQuery
|
$sqlQuery = $sqlQuery
|
||||||
->setSelect('MAX(Sort)')
|
->setSelect("MAX(\"Sort\")")
|
||||||
->setFrom("EditableOption")
|
->setFrom("\"EditableOption\"")
|
||||||
->setWhere("ParentID = $sql_parent");
|
->setWhere("\"ParentID\" = $sql_parent");
|
||||||
|
|
||||||
$sort = $sqlQuery->execute()->value() + 1;
|
$sort = $sqlQuery->execute()->value() + 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user