From 354bea6b9d534b970acff5de695c01dac2143e36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Thu, 22 Sep 2022 15:31:04 +0300 Subject: [PATCH] create widget on dashboard copy dashboard created_from and created_by --- app/Jobs/Common/CreateDashboard.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Jobs/Common/CreateDashboard.php b/app/Jobs/Common/CreateDashboard.php index df76b02de..f66fdafe4 100644 --- a/app/Jobs/Common/CreateDashboard.php +++ b/app/Jobs/Common/CreateDashboard.php @@ -135,6 +135,8 @@ class CreateDashboard extends Job implements HasOwner, HasSource, ShouldCreate 'name' => $name, 'sort' => $sort, 'settings' => (new $class())->getDefaultSettings(), + 'created_from' => $this->model->created_from, + 'created_by' => $this->model->created_by, ])); }