diff --git a/modules/cms/controllers/Index.php b/modules/cms/controllers/Index.php index b0ad1636a..c0ecc5ae7 100644 --- a/modules/cms/controllers/Index.php +++ b/modules/cms/controllers/Index.php @@ -661,7 +661,7 @@ class Index extends Controller $widgetConfig = $this->makeConfig($formConfigs[$type]); $widgetConfig->model = $template; - $widgetConfig->alias = $alias ?: 'form'.studly_case($type).md5($template->getFileName()); + $widgetConfig->alias = $alias ?: 'form'.studly_case($type).md5($template->exists ? $template->getFileName() : uniqid()); return $this->makeWidget('Backend\Widgets\Form', $widgetConfig); }