FIX: Prevent change tracking when picking a different blog post type

This commit is contained in:
Loz Calver 2014-11-25 11:15:17 +00:00
parent 43ae8bf19c
commit b70c1cc749

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();
@ -123,4 +123,4 @@ class GridFieldBlogPostAddNewButton extends GridFieldAddNewButton
}
}
}
}