mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUG Removed 'Sort' field from CMSMain edit form
Related to #7740. The sort field gets stale if the current record is moved in the tree. Since the sort value can't be altered by interacting with the form, its not required as a hidden field, either.
This commit is contained in:
parent
ab0dce9127
commit
651cb03ff2
@ -578,8 +578,6 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
$fields->push($stageLinkField = new HiddenField("StageLink"));
|
||||
$fields->push(new HiddenField("TreeTitle", false, $record->TreeTitle));
|
||||
|
||||
$fields->push(new HiddenField('Sort','', $record->Sort));
|
||||
|
||||
if($record->ID && is_numeric( $record->ID ) ) {
|
||||
$liveLink = $record->getAbsoluteLiveLink();
|
||||
if($liveLink) $liveLinkField->setValue($liveLink);
|
||||
|
Loading…
Reference in New Issue
Block a user