fix draft version

This commit is contained in:
joyqi 2024-10-23 23:56:29 +08:00
parent b04a2ae7b3
commit 185a7bd9ea

View File

@ -193,7 +193,7 @@ class Contents extends Base implements QueryInterface, RowFilterInterface, Prima
$draft = $this->db->fetchObject($this->db->select('type', 'parent')
->from('table.contents')->where('cid = ?', $cid));
if (preg_match("/_draft$/", $draft->type) && $draft->parent) {
if ('revision' === $draft->type && $draft->parent) {
$result = '@' . $result;
}