Skip to content

Commit 8cf8e29

Browse files
committed
bugfix: database plugin, DBが選択されていない状態で「表示設定」タブを選択するとエラーとなる不具合対応
#537
1 parent 02e8ef1 commit 8cf8e29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/Plugins/User/Databases/DatabasesPlugin.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3382,7 +3382,9 @@ public function editView($request, $page_id, $frame_id)
33823382

33833383
// Frames > Buckets > Database で特定
33843384
if (empty($database_frame->bucket_id)) {
3385-
$database = null;
3385+
// bugfix: DBが選択されていない状態で「表示設定」タブを選択するとエラーとなる不具合対応
3386+
// $database = null;
3387+
$database = new Databases();
33863388
$columns = null;
33873389
} else {
33883390
$database = Databases::where('bucket_id', $database_frame->bucket_id)->first();

0 commit comments

Comments
 (0)