Skip to content

fix #4337 【システム】 コンテンツコピー時に layout_template が引き継がれない件を修正#4392

Open
kaburk wants to merge 1 commit into
baserproject:5.2.xfrom
kaburk:5.2.x-#4337
Open

fix #4337 【システム】 コンテンツコピー時に layout_template が引き継がれない件を修正#4392
kaburk wants to merge 1 commit into
baserproject:5.2.xfrom
kaburk:5.2.x-#4337

Conversation

@kaburk
Copy link
Copy Markdown
Collaborator

@kaburk kaburk commented May 22, 2026

よろしくお願いします。

Copilot AI review requested due to automatic review settings May 22, 2026 10:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

本PRは、コンテンツのコピー処理において layout_template が引き継がれない不具合(#4337)を、コピー時に参照するプロパティ名のタイポ修正によって解消するものです。layout_tmplate(誤)参照のため常に未設定扱いになっていた箇所を、layout_template(正)参照に統一しています。

Changes:

  • ContentLinksTable::copy()layout_template 参照タイポを修正
  • PagesTable::copy()layout_template 参照タイポを修正
  • ContentFoldersTable::copy()layout_template 参照タイポを修正

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
plugins/bc-content-link/src/Model/Table/ContentLinksTable.php コピー時に layout_template を正しいプロパティから引き継ぐよう修正
plugins/baser-core/src/Model/Table/PagesTable.php ページコピー時の layout_template 引き継ぎ不具合をタイポ修正で解消
plugins/baser-core/src/Model/Table/ContentFoldersTable.php コンテンツフォルダコピー時の layout_template 引き継ぎ不具合をタイポ修正で解消

Comment on lines 108 to 113
'author_id' => $newAuthorId,
'site_id' => $newSiteId,
'description' => $entity->content->description,
'eyecatch' => $entity->content->eyecatch,
'layout_template' => $entity->content->layout_tmplate ?? '',
'layout_template' => $entity->content->layout_template ?? '',
'url' => $entity->content->url
Comment on lines 276 to 281
'parent_id' => $newParentId,
'title' => $newTitle ?? $oldPage->content->title . '_copy',
'author_id' => $newAuthorId,
'site_id' => $newSiteId,
'layout_template' => $page->content->layout_tmplate ?? ''
'layout_template' => $page->content->layout_template ?? ''
]);
Comment on lines 175 to 180
'author_id' => $newAuthorId,
'site_id' => $newSiteId,
'description' => $entity->content->description,
'eyecatch' => $entity->content->eyecatch,
'layout_template' => $entity->content->layout_tmplate ?? ''
'layout_template' => $entity->content->layout_template ?? ''
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants