Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Syntax error and documentation

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92839 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit 2d82a2ff35af80ba35f37710b3fb385f62e3591c 1 parent 7569c53
@chillu chillu authored
Showing with 6 additions and 1 deletion.
  1. +1 −1  code/CMSMain.php
  2. +5 −0 code/LeftAndMain.php
View
2  code/CMSMain.php
@@ -329,7 +329,7 @@ public function getEditForm($id = null) {
$fields->push($idField = new HiddenField("ID", false, $id));
$fields->push($liveURLField = new HiddenField("LiveURLSegment"));
$fields->push($stageURLField = new HiddenField("StageURLSegment"));
- $fields->push($stageURLField = new HiddenField("TreeTitle", false, $record->TreeTitle));
+ $fields->push(new HiddenField("TreeTitle", false, $record->TreeTitle));
$fields->push(new HiddenField('Sort','', $record->Sort));
View
5 code/LeftAndMain.php
@@ -30,6 +30,11 @@ class LeftAndMain extends Controller {
static $url_priority = 50;
+ /**
+ * @var string A subclass of {@link DataObject}.
+ * Determines what is managed in this interface,
+ * through {@link getEditForm()} and other logic.
+ */
static $tree_class = null;
static $allowed_actions = array(
Please sign in to comment.
Something went wrong with that request. Please try again.