From 49f3cd632ed19f02edd86a934481f20e37060d2e Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Thu, 4 Apr 2019 00:01:14 -0600 Subject: [PATCH] Ensure that widget aliases remain the same between requests. Refs: #4230 --- modules/cms/controllers/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cms/controllers/Index.php b/modules/cms/controllers/Index.php index 7751ede8f..b72591270 100644 --- a/modules/cms/controllers/Index.php +++ b/modules/cms/controllers/Index.php @@ -538,7 +538,7 @@ class Index extends Controller $widgetConfig = $this->makeConfig($formConfigs[$type]); $widgetConfig->model = $template; - $widgetConfig->alias = $alias ?: 'form'.studly_case($type).md5($template->getFileName()).uniqid(); + $widgetConfig->alias = $alias ?: 'form'.studly_case($type).md5($template->getFileName()); return $this->makeWidget('Backend\Widgets\Form', $widgetConfig); }