Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit 651cb03ff20e96c36a8584cd42d2cf91ed5852d4 1 parent ab0dce9
Ingo Schommer chillu authored
Showing with 0 additions and 2 deletions.
  1. +0 −2  code/controllers/CMSMain.php
2  code/controllers/CMSMain.php
View
@@ -578,8 +578,6 @@ public function getEditForm($id = null, $fields = null) {
$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);
Please sign in to comment.
Something went wrong with that request. Please try again.