Permalink
Browse files

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
  • Loading branch information...
chillu committed Apr 12, 2010
1 parent 1ed1348 commit c726569bcfa91467bb1aa7bec221c9220778edbd
Showing with 4 additions and 4 deletions.
  1. +4 −4 core/model/SiteTree.php
View
@@ -1472,9 +1472,10 @@ public static function get_by_url($link) {
* Triggers the onRenameLinkedAsset action on extensions.
*/
function rewriteFileURL($old, $new) {
- // TODO: Check all HTMLText fields
- $fieldName = "Content";
- if($fieldName) {
+ $fields = self::database_fields();
+ foreach($fields as $fieldName => $fieldType) {
+ if ($fieldType != 'HTMLText') continue;
+
$original = clone $this;
// Draft site
@@ -1587,7 +1588,6 @@ function getCMSFields() {
new TextField("Title", $this->fieldLabel('Title')),
new TextField("MenuTitle", $this->fieldLabel('MenuTitle')),
new HtmlEditorField("Content", _t('SiteTree.HTMLEDITORTITLE', "Content", PR_MEDIUM, 'HTML editor title')),
- new HiddenField("Version", "Version", $this->Version)
),
$tabMeta = new Tab('Metadata',
new FieldGroup(_t('SiteTree.URL', "URL"),

0 comments on commit c726569

Please sign in to comment.