mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Version field weird'ed up rollback functionality (from r89464) (from r96715)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102338 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
1ed1348cf3
commit
c726569bcf
@ -1472,9 +1472,10 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
* Triggers the onRenameLinkedAsset action on extensions.
|
* Triggers the onRenameLinkedAsset action on extensions.
|
||||||
*/
|
*/
|
||||||
function rewriteFileURL($old, $new) {
|
function rewriteFileURL($old, $new) {
|
||||||
// TODO: Check all HTMLText fields
|
$fields = self::database_fields();
|
||||||
$fieldName = "Content";
|
foreach($fields as $fieldName => $fieldType) {
|
||||||
if($fieldName) {
|
if ($fieldType != 'HTMLText') continue;
|
||||||
|
|
||||||
$original = clone $this;
|
$original = clone $this;
|
||||||
|
|
||||||
// Draft site
|
// Draft site
|
||||||
@ -1587,7 +1588,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
new TextField("Title", $this->fieldLabel('Title')),
|
new TextField("Title", $this->fieldLabel('Title')),
|
||||||
new TextField("MenuTitle", $this->fieldLabel('MenuTitle')),
|
new TextField("MenuTitle", $this->fieldLabel('MenuTitle')),
|
||||||
new HtmlEditorField("Content", _t('SiteTree.HTMLEDITORTITLE', "Content", PR_MEDIUM, 'HTML editor title')),
|
new HtmlEditorField("Content", _t('SiteTree.HTMLEDITORTITLE', "Content", PR_MEDIUM, 'HTML editor title')),
|
||||||
new HiddenField("Version", "Version", $this->Version)
|
|
||||||
),
|
),
|
||||||
$tabMeta = new Tab('Metadata',
|
$tabMeta = new Tab('Metadata',
|
||||||
new FieldGroup(_t('SiteTree.URL', "URL"),
|
new FieldGroup(_t('SiteTree.URL', "URL"),
|
||||||
|
Loading…
Reference in New Issue
Block a user