Fixing null Form situation in design mode.

This commit is contained in:
Sipke Schoorstra
2014-10-30 13:58:28 -07:00
parent f50bb865b6
commit 17e42b8f0b

View File

@@ -22,6 +22,9 @@ namespace Orchard.DynamicForms.Handlers {
}
void IElementEventHandler.Displaying(ElementDisplayContext context) {
if (context.DisplayType == "Design")
return;
var element = context.Element as FormElement;
if (element == null)