mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #40 from kinglozzer/patch-1
FIX: Prevent change tracking when picking a different blog post type
This commit is contained in:
commit
5255168d1b
@ -57,7 +57,7 @@ class GridFieldBlogPostAddNewButton extends GridFieldAddNewButton
|
||||
$singleton->defaultChild()
|
||||
);
|
||||
$pageTypes->setFieldHolderTemplate("BlogDropdownField_holder")
|
||||
->addExtraClass("gridfield-dropdown");
|
||||
->addExtraClass("gridfield-dropdown no-change-track");
|
||||
|
||||
$forTemplate = new ArrayData(array());
|
||||
$forTemplate->Fields = new ArrayList();
|
||||
@ -123,4 +123,4 @@ class GridFieldBlogPostAddNewButton extends GridFieldAddNewButton
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user