Merge pull request #40 from kinglozzer/patch-1

FIX: Prevent change tracking when picking a different blog post type
This commit is contained in:
Michael Strong 2014-11-26 10:27:10 +13:00
commit 5255168d1b

View File

@ -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();