Skip to content
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...
1 parent ab0dce9 commit 651cb03ff20e96c36a8584cd42d2cf91ed5852d4 @chillu chillu committed Aug 29, 2012
Showing with 0 additions and 2 deletions.
  1. +0 −2 code/controllers/CMSMain.php
2 code/controllers/CMSMain.php
@@ -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);

0 comments on commit 651cb03

Please sign in to comment.
Something went wrong with that request. Please try again.