# Включение пользовательских полей Composer при сохранении черновика

**URL:** <https://meta.discourse.org/t/including-composer-custom-fields-on-save-draft/126913>\
**Category:** Development\
**Created:** [27.Август.2019 09:12:00 UTC](https://meta.discourse.org/t/including-composer-custom-fields-on-save-draft/126913 "2019-08-27T09:12:00Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![spirobel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spirobel/32/170908_2.png) [@spirobel](https://meta.discourse.org/u/spirobel)\
**Post date:** [23.Ноябрь.2019 16:57:44 UTC](https://meta.discourse.org/t/including-composer-custom-fields-on-save-draft/126913/4 "2019-11-23T16:57:44Z")

</div>

Есть несколько моментов, которые я не до конца понимаю: почему `serializeToDraft` является частью API плагинов, а `serializeOnCreate` и `serializeToTopic` — нет? При каких обстоятельствах `serializeToDraft` полезен без двух других, и наоборот? Не должен ли существовать обёрточный метод, который выполняет сериализацию и для постов/тем, и для черновиков?

---

_[View the full topic](https://meta.discourse.org/t/including-composer-custom-fields-on-save-draft/126913)._
