mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fixed line lengths
This commit is contained in:
parent
7306d02411
commit
9e82d8e857
@ -85,8 +85,9 @@ class TreeDropdownField extends FormField {
|
|||||||
* @param bool $showSearch enable the ability to search the tree by
|
* @param bool $showSearch enable the ability to search the tree by
|
||||||
* entering the text in the input field.
|
* entering the text in the input field.
|
||||||
*/
|
*/
|
||||||
public function __construct($name, $title = null, $sourceObject = 'Group', $keyField = 'ID', $labelField = 'TreeTitle',
|
public function __construct($name, $title = null, $sourceObject = 'Group', $keyField = 'ID',
|
||||||
$showSearch = false) {
|
$labelField = 'TreeTitle', $showSearch = false
|
||||||
|
) {
|
||||||
|
|
||||||
$this->sourceObject = $sourceObject;
|
$this->sourceObject = $sourceObject;
|
||||||
$this->keyField = $keyField;
|
$this->keyField = $keyField;
|
||||||
|
@ -75,7 +75,10 @@ class VersionedTest extends SapphireTest {
|
|||||||
*/
|
*/
|
||||||
public function testGetIncludingDeleted() {
|
public function testGetIncludingDeleted() {
|
||||||
// Get all ids of pages
|
// Get all ids of pages
|
||||||
$allPageIDs = DataObject::get('VersionedTest_DataObject', "\"ParentID\" = 0", "\"VersionedTest_DataObject\".\"ID\" ASC")->column('ID');
|
$allPageIDs = DataObject::get(
|
||||||
|
'VersionedTest_DataObject',
|
||||||
|
"\"ParentID\" = 0", "\"VersionedTest_DataObject\".\"ID\" ASC"
|
||||||
|
)->column('ID');
|
||||||
|
|
||||||
// Modify a page, ensuring that the Version ID and Record ID will differ,
|
// Modify a page, ensuring that the Version ID and Record ID will differ,
|
||||||
// and then subsequently delete it
|
// and then subsequently delete it
|
||||||
|
Loading…
Reference in New Issue
Block a user