New templates must have a unique widget alias
This commit is contained in:
parent
c627e8a0dd
commit
c23d671f91
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue