Permalink
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...
1 parent 7569c53 commit 2d82a2ff35af80ba35f37710b3fb385f62e3591c @chillu chillu committed Nov 21, 2009
Showing with 6 additions and 1 deletion.
  1. +1 −1 code/CMSMain.php
  2. +5 −0 code/LeftAndMain.php
View
@@ -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
@@ -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(

0 comments on commit 2d82a2f

Please sign in to comment.