mirror of
https://github.com/discourse/discourse.git
synced 2025-04-17 13:09:02 +08:00
FIX: bump default max for int site settings to a much higher number
(close to long int)
This commit is contained in:
parent
d52048ad34
commit
fdc5c080ea
@ -2,7 +2,8 @@ class IntegerSettingValidator
|
|||||||
def initialize(opts = {})
|
def initialize(opts = {})
|
||||||
@opts = opts
|
@opts = opts
|
||||||
@opts[:min] = 0 unless @opts[:min].present? || @opts[:hidden]
|
@opts[:min] = 0 unless @opts[:min].present? || @opts[:hidden]
|
||||||
@opts[:max] = 20000 unless @opts[:max].present? || @opts[:hidden]
|
# set max closer to a long int
|
||||||
|
@opts[:max] = 2_000_000_000 unless @opts[:max].present? || @opts[:hidden]
|
||||||
end
|
end
|
||||||
|
|
||||||
def valid_value?(val)
|
def valid_value?(val)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user