From 651cb03ff20e96c36a8584cd42d2cf91ed5852d4 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 29 Aug 2012 14:58:42 +0200 Subject: [PATCH] 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. --- code/controllers/CMSMain.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/code/controllers/CMSMain.php b/code/controllers/CMSMain.php index 3e1a25f6..e925e87d 100644 --- a/code/controllers/CMSMain.php +++ b/code/controllers/CMSMain.php @@ -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);