Skip to content
This repository
Browse code

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 authored August 29, 2012

Showing 1 changed file with 0 additions and 2 deletions. Show diff stats Hide diff stats

  1. 2  code/controllers/CMSMain.php
2  code/controllers/CMSMain.php
@@ -578,8 +578,6 @@ public function getEditForm($id = null, $fields = null) {
578 578
 			$fields->push($stageLinkField = new HiddenField("StageLink"));
579 579
 			$fields->push(new HiddenField("TreeTitle", false, $record->TreeTitle));
580 580
 
581  
-			$fields->push(new HiddenField('Sort','', $record->Sort));
582  
-
583 581
 			if($record->ID && is_numeric( $record->ID ) ) {
584 582
 				$liveLink = $record->getAbsoluteLiveLink();
585 583
 				if($liveLink) $liveLinkField->setValue($liveLink);

0 notes on commit 651cb03

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