Rev3672, Fix Config page fileserver port changing

This commit is contained in:
shortcutme 2018-10-24 13:31:42 +02:00
parent a58743b820
commit f540645d80
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
3 changed files with 4 additions and 4 deletions

View file

@ -59,7 +59,7 @@ class UiConfig extends ZeroFrame
if value_same_as_default
value = null
if @config[item.key].item.valid_pattern and not @config[item.key].item.isHidden()
if @config[item.key].item.valid_pattern and not @config[item.key].item.isHidden?()
match = value.match(@config[item.key].item.valid_pattern)
if not match or match[0] != value
message = "Invalid value of #{@config[item.key].item.title}: #{value} (does not matches #{@config[item.key].item.valid_pattern})"