Skip to content

Commit 60a2261

Browse files
committed
New templates should have a unique ID
1 parent 059700a commit 60a2261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/Index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ protected function makeObjectFormWidget($type, $object, $alias = null)
509509

510510
$widgetConfig = $this->makeConfig($formConfigs[$type]);
511511
$widgetConfig->model = $object;
512-
$widgetConfig->alias = $alias ?: 'form'.studly_case($type).md5($object->getFileName());
512+
$widgetConfig->alias = $alias ?: 'form'.studly_case($type).md5($object->exists ? $object->getFileName() : uniqid());
513513
$widgetConfig->context = !$object->exists ? 'create' : 'update';
514514

515515
$widget = $this->makeWidget('Backend\Widgets\Form', $widgetConfig);

0 commit comments

Comments
 (0)