mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
68a912952c
When we started using NumberField for integer site settings in e113eff6634c9b398b0541ea6a0d1626f6732dcc, 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