Skip to content

Commit

Permalink
ブログ記事をコピーする際にアイキャッチ画像がコピーされない問題を改善 fix #1838
Browse files Browse the repository at this point in the history
こちらのコミットだけだと、コピー元がなくなってしまう問題が発生していた
d1c31d9
  • Loading branch information
ryuring committed Jul 12, 2022
1 parent d1c31d9 commit fabb26b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Baser/Plugin/Blog/Model/BlogPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ public function copy($id = null, $data = [])
]);
$result = $this->renameToBasenameFields(true);
$this->set($result); // 内部でリネームされたデータが再セットされる
$result = $this->save();
$result = $this->save(null, ['validate' => false, 'callbacks' => false]);
}
// EVENT BlogPost.afterCopy
$this->dispatchEvent('afterCopy', [
Expand Down

0 comments on commit fabb26b

Please sign in to comment.