// Running Discourse Development Environment //
I have the following:
min_score:
default: 0.01
client: true
min: 0.0001
But the admin can keep overwriting it to negative values, is there a workaround for this?
// Running Discourse Development Environment //
I have the following:
min_score:
default: 0.01
client: true
min: 0.0001
But the admin can keep overwriting it to negative values, is there a workaround for this?
I could not reproduce your setting as it is:
Can you try adding type: float
?
I’m not sure it’s required, as I believe basic types are guessed automatically.
I did try the type: float
too but sadly it had no affect:
min_score:
default: 0.01
client: true
min: 0.0001
type: float
Your screenshot is not showing the minimum_tip
setting.
Was just a typo in my post, has been updated. Issue still remains.
Weird thing is that it resets the value to back to 0.0
when I enter an invalid number but only upon refreshing. But no errors are appearing on the UI side either way.
Bump.
Custom validation seems to work and error out, however I have no luck with the default validation of min/max.
Anyone have any ideas?
After some further testing, it seems like it does not work for type: float
, and only works for type: integer
. However, a user can freely input anything apart from an integer - which requires a hard refresh and results in the value resetting to 0.
Seems like a bug/error on Discourse’s side? It also seems to affect the Chat plugin.