Skip to content

Conversation

@yama
Copy link
Member

@yama yama commented Jan 22, 2026

Motivation

  • DittoのappendTV()@INHERITやデフォルト値を各ドキュメント文脈で正しく解決するためのdocid情報を渡しておらず、Image等のTV出力が表示されない問題を解消するための修正です。

Description

  • assets/snippets/ditto/classes/ditto.class.inc.phpappendTV()内で、取得したTV行やデフォルト処理の各分岐の前に$row['docid']を該当するcontentid/$idで設定するように3箇所挿入しました(例: $row['docid'] = $row['contentid']; / $row['docid'] = $id;)。

Testing

  • 自動テストは実行していません。

Codex Task

Copilot AI review requested due to automatic review settings January 22, 2026 03:54
Copy link
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

This pull request fixes a bug in the Ditto snippet where TV (Template Variable) inheritance processing was failing because the docid field wasn't being passed to the tvProcessor() function. This caused Image TVs and other inherited values to not display correctly.

Changes:

  • Added docid field assignment before each call to tvProcessor() in the appendTV() method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants