Ensure that widget aliases remain the same between requests. Refs: #4230

This commit is contained in:
Luke Towers 2019-04-04 00:01:14 -06:00
parent aee4205b44
commit 49f3cd632e

View File

@ -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);
}