mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Ensure that widget aliases remain the same between requests. Refs: #4230
This commit is contained in:
parent
aee4205b44
commit
49f3cd632e
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user