# «delete user self max post count» не принимает «-1» для отключения

**URL:** <https://meta.discourse.org/t/delete-user-self-max-post-count-not-accepting-1-to-disable/285162>\
**Category:** Bug\
**Created:** [11.Ноябрь.2023 10:03:09 UTC](https://meta.discourse.org/t/delete-user-self-max-post-count-not-accepting-1-to-disable/285162 "2023-11-11T10:03:09Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)\
**Post date:** [16.Ноябрь.2023 02:12:47 UTC](https://meta.discourse.org/t/delete-user-self-max-post-count-not-accepting-1-to-disable/285162/13 "2023-11-16T02:12:47Z")

</div>

Исправление для этого будет доступно здесь, оно должно быть объединено позже сегодня:

> <https://github.com/discourse/discourse/pull/24402>
>
> When we started using NumberField for integer site settings
> in e113eff6634c9b39…8b0541ea6a0d1626f6732dcc, we did not end up
> passing down a min/max value for the integer to the field, which
> meant that for some fields where negative numbers were allowed
> we were not accepting that as valid input.
> 
> This commit passes down the min/max options from the server for
> integer settings then in turn passes them down to NumberField.
> 
> c.f. https://meta.discourse.org/t/delete-user-self-max-post-count-not-accepting-1-to-disable/285162

---

_[View the full topic](https://meta.discourse.org/t/delete-user-self-max-post-count-not-accepting-1-to-disable/285162)._
