mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing null Form situation in design mode.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user