diff --git a/client/src/legacy/CMSMain.AddForm.js b/client/src/legacy/CMSMain.AddForm.js index c37c7700..da50040d 100644 --- a/client/src/legacy/CMSMain.AddForm.js +++ b/client/src/legacy/CMSMain.AddForm.js @@ -20,6 +20,7 @@ $.entwine('ss', function($){ ParentCache: {}, // Cache allowed children for each selected page onadd: function() { var self = this; + // See SelectionGroup.js for logic which hides / shows ParentID this.find('#Form_AddForm_ParentID_Holder .TreeDropdownField').bind('change', function() { self.updateTypeList(); }); diff --git a/code/controllers/CMSPageAddController.php b/code/controllers/CMSPageAddController.php index 81b39bb9..31d6d037 100644 --- a/code/controllers/CMSPageAddController.php +++ b/code/controllers/CMSPageAddController.php @@ -87,8 +87,10 @@ class CMSPageAddController extends CMSPageEditController { ) ); - // TODO Insert page step title - $parentModeField->setTitle(sprintf($numericLabelTmpl, 1, _t('CMSMain.ChoosePageParentMode', 'Choose where to create this page'))); + $parentModeField->setTitle(DBField::create_field( + 'HTMLFragment', + sprintf($numericLabelTmpl, 1, _t('CMSMain.ChoosePageParentMode', 'Choose where to create this page')) + )); $parentField->setSearchFunction(function ($sourceObject, $labelField, $search) { return DataObject::get($sourceObject)